-bash: dig: command not found solution
-bash: dig: command not found solution
Because the dig component is not installed in the system, the following is the installation method
1
2
3
4
5
6
7
debian/ubuntu os
apt install dnsutils
centos/fedora os
yum install bind-utils
Arch Linux os
pacman -S bind-tools
Now you can use the dig command to monitor the domain name
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dig google.com
; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20802
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 60 IN A 8.7.198.46
;; Query time: 37 msec
;; SERVER: 100.100.2.136#53(100.100.2.136)
;; WHEN: Fri May 13 22:48:57 CST 2022
;; MSG SIZE rcvd: 44
💘 相关文章
- -bash: dig: command not found的解决方法
- -bash: crontab: command not found ubuntu问题
- -bash: docker-compose: command not found的两种解决方法
- bash: rsync: command not found解决方法
- -bash: docker-compose: command not found two solutions
- -bash: /bin/rm: 解決方法
- Solution to garbled laptop keyboard
- 适用于Linux,MacOS,Unix 的优秀系统信息bash脚本
- Qnap NAS cannot access Plex solution
- Debian系统出现 "gpg: command not found"的解决方法