dig命令
[root@iZwz9e9l9hl0ydge5skndiZ ~]# dig baidu.com
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 <<>> baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17928
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;baidu.com. IN A
;; ANSWER SECTION:
baidu.com. 509 IN A 39.156.69.79
baidu.com. 509 IN A 220.181.38.148
;; Query time: 0 msec
;; SERVER: 100.100.2.136#53(100.100.2.136)
;; WHEN: Mon Sep 14 09:45:26 CST 2020
;; MSG SIZE rcvd: 59
第一段是查询参数和统计