LEN

查看网络命令 查看DNS
查看网络命令yum install bind-utils 1,dig DNS 查询实用程式。2,nslookup...
扫描右侧二维码阅读全文
21
2018/07

查看网络命令 查看DNS

查看网络命令

yum install bind-utils 

1,dig DNS 查询实用程式。

2,nslookup 命令:用于查找域名服务器的程序,nslookup有两种模式:互交和非互交

[root@xx xxx]#  nslookup baidu.com
Server:         100.100.2.138
Address:        100.100.2.138#53

Non-authoritative answer:
Name:   baidu.com
Address: 220.181.57.216
Name:   baidu.com
Address: 123.125.115.110

[root@xx xxx]# dig www.baidu.com      

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6 <<>> www.baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22385
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;www.baidu.com.                 IN      A

;; ANSWER SECTION:
www.baidu.com.          531     IN      CNAME   www.a.shifen.com.
www.a.shifen.com.       231     IN      A       14.215.177.39
www.a.shifen.com.       231     IN      A       14.215.177.38

;; Query time: 0 msec
;; SERVER: 100.100.2.138#53(100.100.2.138)
;; WHEN: Sat Jul 21 12:59:19 2018
;; MSG SIZE  rcvd: 90
Last modification:July 21st, 2018 at 01:02 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment