对 www.baidu.com 的解析不一样。
在 ping 之前 我看了 hosts 中没有对 www.baidu.com 的解析 也执行过 ipconfig /flushdns 。
ping 的结果如下:
PS C:\Users\wswg2> nslookup www.baidu.com
Server: dns.google
Address: 8.8.8.8
Non-authoritative answer:
Name: www.a.shifen.com
Addresses: 14.119.104.254
14.119.104.189
Aliases: www.baidu.com
PS C:\Users\wswg2> ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
PS C:\Users\wswg2> ping www.baidu.com
Pinging www.baidu.com [127.201.0.113] with 32 bytes of data:
Reply from 127.201.0.113: bytes=32 time
Ping statistics for 127.201.0.113:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms