nslookup(Name Server Lookup)是一种网络管理命令。
用于从 DNS 服务器查询域名、IP 或其他 DNS 记录信息。
nslookup [-OPTION] [SERVER | IP] [DNS SERVER]
# nslookup baidu.com
Server: 1x.2x.2xx.2
Address: 1x.2x.2xx.2#53
Non-authoritative answer:
Name: baidu.com
Address: 110.242.68.66
Name: baidu.com
Address: 39.156.66.10
# nslookup 209.132.183.105
105.183.132.209.in-addr.arpa name = redirect.redhat.com.
Authoritative answers can be found from:
# nslookup -query=CNAME www.baidu.com
Server: 1x.2x.2xx.2
Address: 1x.2x.2xx.2#53
Non-authoritative answer:
www.baidu.com canonical name = www.a.shifen.com.
Authoritative answers can be found from:
nslookup 不加任何参数时进入交互模式
# nslookup
> baidu.com
Server: 1x.2x.2xx.2
Address: 1x.2x.2xx.2#53
Non-authoritative answer:
Name: baidu.com
Address: 39.156.66.10
Name: baidu.com
Address: 110.242.68.66
> exit
Linux 中,查看官方命令文档的方式有以下几种: