nslookup命令使用方法
作者: 日期:2012-09-19 点击:
中国数据是国内排名第四的域名主机服务商!
支持近百种域名后缀注册,.CN域名注册80元/年!
云主机免费备案,并赠送1个月免费使用!
专业的PHP空间做网店论坛,送数据库!
千套模板400电话,最低只要480元!
办公OA系统,助您高效办公!
1.nslookup查询A记录
C:\>nslookup www.cdnunion.com
*** Can't find server name for address 192.168.2.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.2.1
Non-authoritative answer:
Name: www.cdnunion.com
Addresses: 61.129.102.61, 202.101.42.101
61.129.102.61, 202.101.42.101是WWW对应的IP地址.
2.nslookup查询MX记录
C:\>nslookup -type=mx cdnunion.com
*** Can't find server name for address 192.168.2.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.2.1
Non-authoritative answer:
cdnunion.com MX preference = 8, mail exchanger = mail.cdnunion.com
cdnunion.com nameserver = ns2.cdnunion.com
mail.cdnunion.com internet address = 61.129.102.61
mail.cdnunion.com是cdnunion.com对应的MX记录.
3.nslookup查询查CNAME记录
C:\>nslookup -type=cname www.kukudm.com
*** Can't find server name for address 192.168.2.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.2.1
Non-authoritative answer:
www.kukudm.com canonical name = www.kukudm.cdnunion.com
www.kukudm.cdnunion.com是www.kukudm.com对应的CNAME记录.
4.nslookup查询域名服务器
C:\>nslookup -type=ns cdnunion.com
*** Can't find server name for address 192.168.2.1: Non-existent domain
*** Default servers are not available
Server: UnKnown
Address: 192.168.2.1
Non-authoritative answer:
cdnunion.com nameserver = ns2.cdnunion.com
ns2.cdnunion.com internet address = 61.129.102.61
ns2.cdnunion.com是cdnunion.com域名的DNS服务器.
5.nslookup指定域名服务器查询结果.
C:\>nslookup www.cdnunion.com 202.102.128.68
Server: ns.sdjnptt.net.cn
Address: 202.102.128.68
Non-authoritative answer:
Name: www.cdnunion.com
Address: 210.51.25.233
202.102.128.68是山东DNS服务器IP.
上一篇:什么是CNAME别名
下一篇:什么是A记录