在 Windows 10 上的 cmd.exe 中對 cryptopia.co.nz 執行 ping 操作時,我得到以下結果之一:
Pinging cryptopia.co.nz [45.60.13.241] with 32 bytes of data:
Reply from 45.60.13.241: bytes=32 time=7ms TTL=54
Reply from 45.60.13.241: bytes=32 time=12ms TTL=54
Reply from 45.60.13.241: bytes=32 time=12ms TTL=54
Reply from 45.60.13.241: bytes=32 time=10ms TTL=54
Ping statistics for 45.60.13.241:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 7ms, Maximum = 12ms, Average = 10ms
或者
Pinging cryptopia.co.nz [45.60.11.241] with 32 bytes of data:
Reply from 45.60.11.241: bytes=32 time=111ms TTL=55
Reply from 45.60.11.241: bytes=32 time=110ms TTL=55
Reply from 45.60.11.241: bytes=32 time=114ms TTL=55
Reply from 45.60.11.241: bytes=32 time=111ms TTL=55
Ping statistics for 45.60.11.241:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 110ms, Maximum = 114ms, Average = 111ms
這兩次 ping 的間隔為 1 秒。我以為我的電腦 DNS 快取會保留第一次解析的位址,為什麼不是呢?有沒有辦法強制系統使用包含 13 的 IP 進行所有操作?它的 ping 時間要好得多。
答案1
記下第一次查詢時的 IP 位址,然後明確 ping 該 IP 位址。
A:\> nslookup cryptiopia.co.nz
Server: 10.9.8.7
Address: 10.9.8.7#53
Non-authoritative answer:
Name: cryptopia.co.nz
Address: 45.60.11.241
Name: cryptopia.co.nz
Address: 45.60.13.241
A:\> ping 45.60.11.241
Pinging 45.60.11.241 [45.60.11.241] with 32 bytes of data:
Reply from 45.60.11.241: bytes=32 time=111ms TTL=55
Reply from 45.60.11.241: bytes=32 time=110ms TTL=55
Reply from 45.60.11.241: bytes=32 time=114ms TTL=55
Reply from 45.60.11.241: bytes=32 time=111ms TTL=55
Ping statistics for 45.60.11.241:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 110ms, Maximum = 114ms, Average = 111ms
當然,在沒有先驗知識的情況下,您不知道哪一個 IP 位址會更快,或者選擇不同的 IP 位址實際上是否會產生任何影響,或者再次詢問是否會產生另一組 IP 位址。