全部博文(321)
分类: LINUX
2009-11-02 11:32:58
windows开始菜单->运行,输入cmd/command(各版本系统的命令不同),进入到命令行窗口。 下面以XP为例 C:\Documents and Settings\dnswood>nslookup Default Server: dialdns.bta.net.cn Address: 202.106.46.151 > set type=ns //这里设置查询类型为NS,即名字服务器 > baidu.com //输入我们要查询的域名,这里以为例。 Server: dialdns.bta.net.cn Address: 202.106.46.151 Non-authoritative answer: baidu.com nameserver = ns3.baidu.com baidu.com nameserver = ns4.baidu.com baidu.com nameserver = dns.baidu.com baidu.com nameserver = ns2.baidu.com //至此,我们就知道了baidu.com的NS服务器分别是dns,ns2,ns3,ns4.baidu.com > set type=soa //设置查询类型为SOA(Start Of Authority)记录 > baidu.com Server: dialdns.bta.net.cn Address: 202.106.46.151 Non-authoritative answer: baidu.com primary name server = dns.baidu.com responsible mail addr = sa.baidu.com serial = 2008042301 refresh = 300 (5 mins) retry = 300 (5 mins) expire = 2592000 (30 days) default TTL = 7200 (2 hours) //至此,我们知道了SOA记录的值,TTL,刷新时间,到期时间等等。 >> set type=any //查询任意记录 > baidu.com Server: dialdns.bta.net.cn Address: 202.106.46.151 Non-authoritative answer: baidu.com MX preference = 10, mail exchanger = mx1.baidu.com baidu.com internet address = 220.181.38.84 baidu.com internet address = 202.108.22.46 baidu.com nameserver = ns4.baidu.com baidu.com nameserver = dns.baidu.com baidu.com nameserver = ns2.baidu.com baidu.com nameserver = ns3.baidu.com |