当前位置: 技术问答>linux和unix
知道网址,在DOS下用什么命令查到对应的IP呀
来源: 互联网 发布时间:2015-01-24
本文导语: 比如 www.163.com,是用Ping指令么,好像不行呀 | 用ping命令是可以的。执行结果如下: ============================================================= D:>ping www.163.com Pinging www.163.com [202.108.42.73] with 32 bytes of...
比如 www.163.com,是用Ping指令么,好像不行呀
|
用ping命令是可以的。执行结果如下:
=============================================================
D:>ping www.163.com
Pinging www.163.com [202.108.42.73] with 32 bytes of data:
Reply from 202.108.42.73: bytes=32 time=20ms TTL=244
Reply from 202.108.42.73: bytes=32 time=10ms TTL=244
Reply from 202.108.42.73: bytes=32 time=20ms TTL=244
Reply from 202.108.42.73: bytes=32 time=10ms TTL=244
Ping statistics for 202.108.42.73:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 20ms, Average = 15ms
=============================================================
从上面可以看出,www.163.com的IP是202.108.42.73。
另外,如果您使用的是win2k及winXP操作系统,可以直接使用nslook命令查询dns服务器,得到相应的ip:
=============================================================
D:>nslookup www.163.com
Server: ns1.hbwhptt.net.cn
Address: 202.103.0.117
Non-authoritative answer:
Name: www.163.com
Addresses: 202.108.42.73, 202.108.42.91, 202.108.36.136, 202.108.42.71 202.108.42.72
=============================================================
这个命令更加全面,可以看到,www.163.com注册了几个ip,现在正在使用第一个。
=============================================================
D:>ping www.163.com
Pinging www.163.com [202.108.42.73] with 32 bytes of data:
Reply from 202.108.42.73: bytes=32 time=20ms TTL=244
Reply from 202.108.42.73: bytes=32 time=10ms TTL=244
Reply from 202.108.42.73: bytes=32 time=20ms TTL=244
Reply from 202.108.42.73: bytes=32 time=10ms TTL=244
Ping statistics for 202.108.42.73:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 10ms, Maximum = 20ms, Average = 15ms
=============================================================
从上面可以看出,www.163.com的IP是202.108.42.73。
另外,如果您使用的是win2k及winXP操作系统,可以直接使用nslook命令查询dns服务器,得到相应的ip:
=============================================================
D:>nslookup www.163.com
Server: ns1.hbwhptt.net.cn
Address: 202.103.0.117
Non-authoritative answer:
Name: www.163.com
Addresses: 202.108.42.73, 202.108.42.91, 202.108.36.136, 202.108.42.71 202.108.42.72
=============================================================
这个命令更加全面,可以看到,www.163.com注册了几个ip,现在正在使用第一个。