dig命令

    1. [root@iZwz9e9l9hl0ydge5skndiZ ~]# dig baidu.com
    2. ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-16.P2.el7_8.6 <<>> baidu.com
    3. ;; global options: +cmd
    4. ;; Got answer:
    5. ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17928
    6. ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    7. ;; QUESTION SECTION:
    8. ;baidu.com. IN A
    9. ;; ANSWER SECTION:
    10. baidu.com. 509 IN A 39.156.69.79
    11. baidu.com. 509 IN A 220.181.38.148
    12. ;; Query time: 0 msec
    13. ;; SERVER: 100.100.2.136#53(100.100.2.136)
    14. ;; WHEN: Mon Sep 14 09:45:26 CST 2020
    15. ;; MSG SIZE rcvd: 59

    第一段是查询参数和统计
    image.png