admin avatar

-bash: dig: command not found solution

🕤 by admin

-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

💘 相关文章

写一条评论