你的位置: Kiyo'Space首页 网络 阅读文章 欢迎留下您的足迹

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.


欢迎在此留下您的脚步






评论内容 (*必填):
(Ctrl + Enter 快速提交)