admin avatar

-bash: dig: command not found的解决方法

🕦 by admin





-bash: dig: command not found的解决方法

因为dig组件没有安装在系统,下面是安装方法

1
2
3
4
5
6
debian/ubuntu系统
apt install dnsutils
centos/fedora系统
yum install bind-utils
Arch Linux系统
pacman -S bind-tools

现在你可以使用dig命令监测域名了

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





💘 相关文章





写一条评论

Based on Golang + fastHTTP + sdb | go1.18.1 Processed in 2ms