manjaro安装dig命令

Published on Aug. 22, 2023, 12:11 p.m.

dig命令大多时候可以取代nslookup

安装dig命令

yay -S dnsutils

dig baidu.com

; <<>> DiG 9.18.7 <<>> baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52812
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;baidu.com. IN A

;; ANSWER SECTION:
baidu.com. 325 IN A 110.242.68.66
baidu.com. 325 IN A 39.156.66.10

;; Query time: 6 msec
;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP)
;; WHEN: Wed Oct 12 19:22:21 CST 2022
;; MSG SIZE rcvd: 70

Tags: