- dig 域名 记录类型 @指定的DNS服务器地址
例如:dig baidu.com any @8.8.8.8
(不加dns服务器地址会使用默认的)
(多切换几个dns服务器地址,查到的会比较全面)
root@kali:~# dig baidu.com any @8.8.8.8
;; Connection to 8.8.8.8#53(8.8.8.8) for baidu.com failed: timed out.
; <<>> DiG 9.11.2-5-Debian <<>> baidu.com any @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14351
;; flags: qr rd ra; QUERY: 1, ANSWER: 15, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION