nslookup命令用法

1.查询A记录

C:\>nslookup www.anyter.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.anyter.com
Addresses:  61.129.102.61, 202.101.42.101

61.129.102.61, 202.101.42.101是WWW对应的IP地址.

2.查询MX记录
C:\>nslookup -type=mx anyter.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:
anyter.com    MX preference = 8, mail exchanger = mail.anyter.com

anyter.com    nameserver = ns2.anyter.com
mail.anyter.com       internet address = 61.129.102.61

mail.anyter.com是anyter.com对应的MX记录.

3.查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.anyter.com

www.kukudm.anyter.comwww.kukudm.com对应的CNAME记录.

4.查询域名服务器
C:\>nslookup -type=ns anyter.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:
anyter.com    nameserver = ns2.anyter.com

ns2.anyter.com        internet address = 61.129.102.61

ns2.anyter.com是anyter.com域名的DNS服务器.

5.指定域名服务器查询结果.

C:\>nslookup www.anyter.com 202.102.128.68
Server:  ns.sdjnptt.net.cn
Address:  202.102.128.68

Non-authoritative answer:
Name:    www.anyter.com
Address:  210.51.25.233

202.102.128.68是山东DNS服务器IP.

版权声明:
作者:Kiyo
链接:https://www.wkiyo.cn/html/2008-01/i327.html
来源:Kiyo's space
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>