進(jìn)行DNS查詢的一個(gè)非常有用的工具是nslookup,可以使用它來查詢DNS中的各種數(shù)據(jù)。可以在Windows的命令行下直接運(yùn)行nslookup進(jìn)入一個(gè)交互模式,在這里能查詢各種類型的DNS數(shù)據(jù)。
DNS的名字解析數(shù)據(jù)可以有各種不同的類型,有設(shè)置這個(gè)zone的參數(shù)的SOA類型數(shù)據(jù),有設(shè)置名字對應(yīng)的IP地址的A類型數(shù)據(jù),有設(shè)置郵件交換的MX類型數(shù)據(jù)。這些不同類型的數(shù)據(jù)均可以通過nslookup的交互模式來查詢,在查詢過程中可以使用 set type命令設(shè)置相應(yīng)的查詢類型。
如:
C:>nslookup
Default Server: [202.106.184.166]
Address: 202.106.184.166
> set type=mx
> sina.com.cn
Default Server: [202.106.184.166]
Address: 202.106.184.166
Non-authoritative answer:
sina.com.cn MX preference = 10, mail exchanger = sinamx.sina.com.cn
sina.com.cn nameserver = ns1.sina.com.cn
sina.com.cn nameserver = ns3.sina.com.cn
sinamx.sina.com.cn internet address = 202.106.187.179
sinamx.sina.com.cn internet address = 202.106.182.230
ns1.sina.com.cn internet address = 202.106.184.166
ns3.sina.com.cn internet address = 202.108.44.55
如果所要查的某域名的MX記錄不存在,則出現(xiàn)與以下類似的提示:
C:>nslookup
> set type=mx
> demo.amaxit.net
Default Server: [202.106.184.166]
Address: 202.106.184.166
Non-authoritative answer:
*** Can't find demo.amaxit.net: No answer
Authoritative answers can be found from:
amaxit.net
origin = dns1.hichina.com
mail addr = hostmaster.hichina.com
serial = 2006091503
refresh = 21601
retry = 3600
expire = 1728000
minimum = 21600
新聞熱點(diǎn)
疑難解答