nslookup命令
nslookup
默认服务器:  FJ-DNS.fz.fj.cn
Address:  218.85.157.99
set type=cname //设置查询类型,set all查看所有的查询类型
sina.com
服务器:  FJ-DNS.fz.fj.cn
Address:  218.85.157.99
sina.com
        primary name server = ns1.sina.com.cn
        responsible mail addr = zhihao.staff.sina.com.cn
        serial  = 2005042601
        refresh = 900 (15 mins)
        retry   = 300 (5 mins)
        expire  = 604800 (7 days)
        default TTL = 300 (5 mins)

nslookup -qt=mx oray.net    //查询oray.net的邮件服务器记录
服务器:  FJ-DNS.fz.fj.cn
Address:  218.85.157.99
非权威应答:                 //此行表示这个结果从服务器的缓存中得到
oray.net        MX preference = 1, mail exchanger = mx.vip.olivemail.net //preference表示优先级,越小表示越高
nslookup -qt=ns vicp.net  //查询oray.net的NS记录
非权威应答: 
vicp.net        nameserver = ns1.dnsoray.net
vicp.net        nameserver = ns2.dnsoray.net
ns2.dnsoray.net internet address = 113.105.231.35
ns1.dnsoray.net internet address = 184.106.192.72
ns1.dnsoray.net internet address = 202.105.21.193

nslookup -qt=ns oray.net e.root-servers.net  //指定dns服务器查询nslookup [-qt=类型] 目标域名 指定的DNS服务器IP或域名
192.in-addr.arpa        nameserver = X.ARIN.NET
192.in-addr.arpa        nameserver = V.ARIN.NET
192.in-addr.arpa        nameserver = Y.ARIN.NET
192.in-addr.arpa        nameserver = W.ARIN.NET
192.in-addr.arpa        nameserver = DILL.ARIN.NET
192.in-addr.arpa        nameserver = Z.ARIN.NET
192.in-addr.arpa        nameserver = T.ARIN.NET
192.in-addr.arpa        nameserver = U.ARIN.NET
服务器:  UnKnown
Address:  192.203.230.10
net     nameserver = l.gtld-servers.net
net     nameserver = j.gtld-servers.net
net     nameserver = m.gtld-servers.net
net     nameserver = h.gtld-servers.net
net     nameserver = b.gtld-servers.net
net     nameserver = e.gtld-servers.net
net     nameserver = i.gtld-servers.net
net     nameserver = a.gtld-servers.net
net     nameserver = c.gtld-servers.net
net     nameserver = k.gtld-servers.net
net     nameserver = g.gtld-servers.net
net     nameserver = f.gtld-servers.net
net     nameserver = d.gtld-servers.net
a.gtld-servers.net      internet address = 192.5.6.30
a.gtld-servers.net      AAAA IPv6 address = 2001:503:a83e::2:30
b.gtld-servers.net      internet address = 192.33.14.30
b.gtld-servers.net      AAAA IPv6 address = 2001:503:231d::2:30
c.gtld-servers.net      internet address = 192.26.92.30
d.gtld-servers.net      internet address = 192.31.80.30
e.gtld-servers.net      internet address = 192.12.94.30
f.gtld-servers.net      internet address = 192.35.51.30
g.gtld-servers.net      internet address = 192.42.93.30
h.gtld-servers.net      internet address = 192.54.112.30
i.gtld-servers.net      internet address = 192.43.172.30
j.gtld-servers.net      internet address = 192.48.79.30
k.gtld-servers.net      internet address = 192.52.178.30
l.gtld-servers.net      internet address = 192.41.162.30
m.gtld-servers.net      internet address = 192.55.83.30
 
nslookup -d3 766.com  //查询DNS数据的所有内容,-d表示检查域名的缓存时间
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 1, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0
    QUESTIONS:
        99.157.85.218.in-addr.arpa, type = PTR, class = IN
    ANSWERS:
    ->  99.157.85.218.in-addr.arpa
        name = FJ-DNS.fz.fj.cn
        ttl = 11225 (3 hours 7 mins 5 secs)
------------
服务器:  FJ-DNS.fz.fj.cn
Address:  218.85.157.99
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 2, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 1,  authority records = 0,  additional = 0
    QUESTIONS:
        766.com, type = A, class = IN
    ANSWERS:
    ->  766.com
        internet address = 121.207.231.30
        ttl = 1470 (24 mins 30 secs)
------------
非权威应答:
------------
Got answer:
    HEADER:
        opcode = QUERY, id = 3, rcode = NOERROR
        header flags:  response, want recursion, recursion avail.
        questions = 1,  answers = 0,  authority records = 1,  additional = 0
    QUESTIONS:
        766.com, type = AAAA, class = IN
    AUTHORITY RECORDS:
    ->  766.com
        ttl = 60 (1 min)
        primary name server = ns1.aiya.cn
        responsible mail addr = root.ns1.aiya.cn
        serial  = 2010072009
        refresh = 1800 (30 mins)
        retry   = 600 (10 mins)
        expire  = 1209600 (14 days)
        default TTL = 600 (10 mins)
------------
名称:    766.com
Address:  121.207.231.30

nslookup -norecurse www.766.com f.gtld-servers.net
(root)  nameserver = m.root-servers.net
(root)  nameserver = k.root-servers.net
(root)  nameserver = d.root-servers.net
(root)  nameserver = a.root-servers.net
(root)  nameserver = e.root-servers.net
(root)  nameserver = j.root-servers.net
(root)  nameserver = c.root-servers.net
(root)  nameserver = b.root-servers.net
(root)  nameserver = l.root-servers.net
(root)  nameserver = g.root-servers.net
(root)  nameserver = i.root-servers.net
(root)  nameserver = h.root-servers.net
(root)  nameserver = f.root-servers.net
服务器:  UnKnown
Address:  192.35.51.30
名称:    www.766.com
Served by:
- ns1.aiya.cn
          766.com
- ns2.aiya.cn
          766.com