DNS
#dig www.baidu.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.37.rc1.el6 <<>> www.baidu.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26246
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.baidu.com. IN A
;; ANSWER SECTION:
www.baidu.com. 5 IN CNAME www.a.shifen.com.
www.a.shifen.com. 5 IN A 111.13.100.91
www.a.shifen.com. 5 IN A 111.13.100.92
;; Query time: 19 msec
;; SERVER: 192.168.49.2#53(192.168.49.2)
;; WHEN: Sat Jun 18 20:59:19 2016
;; MSG SIZE rcvd: 90
#dig +short www.baidu.com
#dig @4.2.2.2 www.baidu.com
主机名.次级域名.根域名
host.sld.tld.root
分级查询
#dig +trace www.baidu.com
dig ns www.baidu.com
反查域名
dig -x 192.168.1.148
= host 192.168.1.148
nslookup互动式查询域名记录
whois查看域名的注册情况