-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
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
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