在我的 Windows XP 工作站上,我可以在 DNS 中找到我想要连接的机器nslookup
:
nslookup wolfman
Server: dns.company.com
Address: 192.168.1.38
Name: wolfman.company.com
Address: 192.168.1.178
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试连接到那台机器时,我收到一条错误消息,告诉我找不到该机器(即,无法在 DNS 中查找):
C:\> ping wolfman
Ping request could not find host wolfman. Please check the name and try again.
Run Code Online (Sandbox Code Playgroud)
如果我直接使用 IP 地址,我可以连接:
C:\> ping 192.168.1.178
Pinging 192.168.1.178 with 32 bytes of data:
Reply from 192.168.1.178: bytes=32 time=41ms TTL=126
Reply from 192.168.1.178: bytes=32 time=41ms TTL=126
Reply from 192.168.1.178: bytes=32 time=44ms TTL=126
Reply from 192.168.1.178: bytes=32 time=38ms TTL=126
Run Code Online (Sandbox Code Playgroud)
我可以通过在我的hosts
文件中添加一个条目来解决这个问题,但我宁愿找出发生这种情况的原因。问题是暂时的,一天中的大部分时间我都可以很好地连接到机器。
这怎么可能?
ETA:为简洁起见,我省略了这一点,但有人要求: …