ping局域网主机得到*IP或另一网段IP

症状:;两个笔记本连接到同一个路由器上, 一个ip是 192.168.1.100,主机名是Lenovo-A, 另一个是192.168.1.109,主机名是Lenovo-B

在Lenovo-A 上ping Lenovo-B,得到结果

Ping request could not find host Lenovo-B. Please check the name and try again.

Pinging 192.168.1.109 with 32 bytes of data:

Reply from 192.168.1.109: bytes=32 time=1ms TTL=128
Reply from 192.168.1.109: bytes=32 time=1ms TTL=128
Reply from 192.168.1.109: bytes=32 time=1ms TTL=128
Reply from 192.168.1.109: bytes=32 time=1ms TTL=128

Ping statistics for 192.168.1.109:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms

同样在Lenovo-B 上ping Lenovo-A,得到结果

Pinging Lenovo-A.domain [69.125.124.21] with 32 bytes of data:

Reply from 69.125.124.21: bytes=32 time<64ms TTL=128
Reply from 69.125.124.21: bytes=32 time<64ms TTL=128
Reply from 69.125.124.21: bytes=32 time<63ms TTL=128
Reply from 69.125.124.21: bytes=32 time<68ms TTL=128

参照此贴:http://bbs.csdn.net/topics/300096424

解决方案: Choose Append parent suffixes of the primary DNS suffix  from http://technet.microsoft.com/zh-cn/library/cc959339

因为安装了某些与公司网络环境相关的软件,所以启用了自动添加DNS后缀选项。选择上面的“Append parent suffixes of the primary DNS suffix”就好了。

原文地址:https://www.cnblogs.com/crazyghostvon/p/network_config.html