我有一个站点的 url,我隐约记得有一个 Windows 控制台命令,您可以使用它来查找站点部署到的服务器的 IP 地址。有人可以提醒我吗?另外,能告诉我怎么用吗?
问问题
155 次
2 回答
1
如果您使用 Windows 命令提示符 ping 服务器,它将为您提供服务器 IP。例如:ping www.google.com
C:\Users\Deleu>ping www.google.com
Pinging www.l.google.com [177.99.189.241] with 32 bytes of data:
Reply from 177.99.189.241: bytes=32 time=34ms TTL=58
Reply from 177.99.189.241: bytes=32 time=36ms TTL=58
Reply from 177.99.189.241: bytes=32 time=38ms TTL=58
Reply from 177.99.189.241: bytes=32 time=38ms TTL=58
Ping statistics for 177.99.189.241:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 34ms, Maximum = 38ms, Average = 36ms
C:\Users\Deleu>
于 2012-06-13T14:14:58.677 回答
1
你需要nslookup。
Nslookup.exe 是用于测试和排除 DNS 服务器故障的命令行管理工具。该工具通过控制面板与 TCP/IP 协议一起安装。本文包括使用 Nslookup.exe 的几个技巧。
c:\Temp>nslookup google.com
Server: BoB.Orcon
Address: 10.1.1.1 <------ Name server
Non-authoritative answer:
Name: google.com
Addresses: 2404:6800:4006:804::1004 <----- Answer in ipv6
74.125.237.128 <----- Answer in ipv4
74.125.237.137 <----- Other answers....
74.125.237.134 .
74.125.237.132 .
74.125.237.135 .
74.125.237.133 etc
74.125.237.136 .
74.125.237.142 .
74.125.237.130 .
74.125.237.131 .
74.125.237.129
于 2012-06-13T14:18:02.243 回答