linux--nslookup

来源:互联网 发布:数字新闻 数据新闻 编辑:程序博客网 时间:2024/04/30 08:40

nslookup命令的功能是查询一台机器的IP 地址和对应的域名,它通常需要一台域名服务器来提供域名服务。如果用户已经设置好了

域名服务器,就可以恋情这个命令查看联不同主机的IP 地址和对应的域名。

[lianxiang@localhost shell]$ nslookup
> www.baidu.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 119.75.217.109
Name:   www.a.shifen.com
Address: 119.75.218.70
> www.google.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.google.com  canonical name = www-g-com-chn.l.google.com.
Name:   www-g-com-chn.l.google.com
Address: 74.125.71.104
Name:   www-g-com-chn.l.google.com
Address: 74.125.71.99
> www.yahoo.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.yahoo.com   canonical name = fp.wg1.b.yahoo.com.
fp.wg1.b.yahoo.com      canonical name = any-fp.wa1.b.yahoo.com.
Name:   any-fp.wa1.b.yahoo.com
Address: 98.137.149.56
Name:   any-fp.wa1.b.yahoo.com
Address: 72.30.2.43
> www.bing.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.bing.com    canonical name = search.ms.com.edgesuite.net.
search.ms.com.edgesuite.net     canonical name = a134.g1.akamai.net.
Name:   a134.g1.akamai.net
Address: 61.200.81.136
Name:   a134.g1.akamai.net
Address: 61.200.81.134
>
> q^Z
[8]+  Stopped                 nslookup
[lianxiang@localhost shell]$ clear
[lianxiang@localhost shell]$ nslookup
> exit

[lianxiang@localhost shell]$ clear











[lianxiang@localhost shell]$ clear















                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
                                                                                                                            
[lianxiang@localhost shell]$ nslookup
> www.baidu.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.baidu.com   canonical name = www.a.shifen.com.
Name:   www.a.shifen.com
Address: 119.75.218.70
Name:   www.a.shifen.com
Address: 119.75.217.109
> www.google.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.google.com  canonical name = www-g-com-chn.l.google.com.
Name:   www-g-com-chn.l.google.com
Address: 74.125.71.99
Name:   www-g-com-chn.l.google.com
Address: 74.125.71.104
> www.yahoo.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.yahoo.com   canonical name = fp.wg1.b.yahoo.com.
fp.wg1.b.yahoo.com      canonical name = any-fp.wa1.b.yahoo.com.
Name:   any-fp.wa1.b.yahoo.com
Address: 98.137.149.56
Name:   any-fp.wa1.b.yahoo.com
Address: 72.30.2.43
> www.bing.com
Server:         202.114.88.10
Address:        202.114.88.10#53

Non-authoritative answer:
www.bing.com    canonical name = search.ms.com.edgesuite.net.
search.ms.com.edgesuite.net     canonical name = a134.g1.akamai.net.
Name:   a134.g1.akamai.net
Address: 61.200.81.134
Name:   a134.g1.akamai.net
Address: 61.200.81.136

 

原创粉丝点击