没有 IPv6 时 Ping 失败

发布于 2024-07-06 10:10:59 字数 1114 浏览 9 评论 0原文

我们的用户界面正在与不同机器上的另一个应用程序进行通信,通常使用域名进行连接。

在我们的网络上,安装 IPv6 后,DNS 名称解析效果很好,所有计算机都可以正常 ping 和联系。

卸载 IPv6 后,ping 相同的 DNS 名称会返回某个远程子网中的 IP 地址(24.28.193.9;本地子网为 192.168.1.1); 我们的应用程序将无法通信。 重新安装 IPv6 后,DNS 解析会自行更正。

即使没有 IPv6,当 ping 不起作用时,我仍然可以通过输入 \\\\MACHINE_NAME\\ 使用 Windows 资源管理器浏览其他计算机。 我不确定为什么名称解析似乎在这里起作用。 我们在Windows XP SP2环境下工作。

机器的IP可以ping通。 只是 DNS 名称无法正确解析。

我查找了我们的 DNS 服务器的地址。 我们所有的计算机都指向网络网关,即无线路由器。 安装 IPv6 时和未安装 IPv6 时,路由器列出的 DNS 服务器地址相同。

最奇怪的是,我刚刚发现我 ping 的 DNS 名称并不重要。 对 DNS 名称的所有 ping 操作都会返回相同的地址:“24.28.193.9”。

我尝试刷新 DNS 解析器缓存并在目标计算机和源计算机上注册 DNS。 一切都无济于事。 我可以 ping 的唯一 DNS 名称是当前计算机的名称。

您是否想过为什么我们的软件在未安装 IPv6 的情况下无法通信?


更新:

好的,我现在做了更多的研究。

我查找了我们的 DNS 服务器的地址。 我们所有的计算机都指向网络网关,即无线路由器。 安装 IPv6 时和未安装 IPv6 时,路由器列出的 DNS 服务器地址相同。

最奇怪的是,我刚刚发现我 ping 的 DNS 名称并不重要。 对 DNS 名称的所有 ping 操作都会返回相同的地址:“24.28.193.9”。

我尝试刷新 DNS 解析器缓存并在目标计算机和源计算机上注册 DNS。 一切都无济于事。 我可以 ping 的唯一 DNS 名称是当前计算机的名称。

还有其他建议吗? 非常感谢你的帮助。

Our user interface is communicating with another application on a different machine, often connecting using domain names.

On our network, when IPv6 is installed, DNS name resolution works great, all machines can be pinged and contacted fine.

When IPv6 is uninstalled, pinging the same DNS names returns an IP address on some distant subnet (24.28.193.9; local subnet is 192.168.1.1); our application is then unable to communicate. When IPv6 is reinstalled, the DNS resolution corrects itself.

Even without IPv6 when ping is not working, I can still browse other machines using Windows Explorer by entering \\\\MACHINE_NAME\\. I'm not sure why the name resolution seems to work here. We are working in the Windows XP SP2 environment.

The IPs of the machines can be pinged successfully. It is only the DNS names that do not resolve properly.

I looked for the address of our DNS server. All of our computers are pointing at the network gateway, which is a wireless router. The router has the same DNS server address listed when IPv6 is installed as it does when it isn't installed.

The strangest thing is that I just discovered that it does not matter what DNS name I ping. All pings to DNS names return the same address: "24.28.193.9".

I tried flushing the DNS Resolver Cache and registering DNS on the target machine and the source machine. All to no avail. The only DNS name that I can ping is the name of the current machine.

Any thoughts as to why our software can't communicate without IPv6 installed?


UPDATE:

OK, I've done a little more research now.

I looked for the address of our DNS server. All of our computers are pointing at the network gateway, which is a wireless router. The router has the same DNS server address listed when IPv6 is installed as it does when it isn't installed.

The strangest thing is that I just discovered that it does not matter what DNS name I ping. All pings to DNS names return the same address: "24.28.193.9".

I tried flushing the DNS Resolver Cache and registering DNS on the target machine and the source machine. All to no avail. The only DNS name that I can ping is the name of the current machine.

Any other suggestions? Thanks so much for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

原谅过去的我 2024-07-13 10:10:59

这里发生了很多事情

  1. DNS 名称解析
  2. Windows 名称解析
  3. IP-IP ICMP 通信

您写下的问题就好像 #3 存在问题,但您描述的所有内容都表明问题实际上与 #1 相关。 如果您不考虑解决问题,那么在未安装 IPv6 的情况下您能否 ping 通正确的 IP?

听起来您可能安装了具有正确信息的 IPv6 名称服务器,而 IPv4 名称服务器不正确? 您是否通过 DHCP 或硬编码接收名称服务器? 安装 IPv6 和未安装 IPv6 时,您使用的名称服务器的 IP 是什么?

You've got multiple things going on here

  1. DNS Name resolution
  2. Windows Name resolution
  3. IP-IP ICMP communication

You've written your question as if there's a problem with #3, but everything you describe points to the problem actually being with #1. If you take resolution out of the question, can you ping the correct IPs with our without IPv6 installed?

It sounds like maybe you have an IPv6 name server installed that has correct information and the IPv4 name server is incorrect? Are you receiving name servers via DHCP or hard coding? What are the IPs of the name servers you are using when IPv6 is installed and when it isn't?

傾旎 2024-07-13 10:10:59

我知道这是一个迟到的答案,但如果其他人也有同样的问题,关键是 IP 地址“24.28.193.9”。 快速 Google 搜索显示,这似乎与您的 ISP 通过为所有不存在的域名返回固定 IP 地址(正确答案是 NXDOMAIN)而完全破坏了 DNS 协议有关。 您的网络网关很可能只是将您的查询转发到 ISP 的名称服务器。

您的系统依赖于 DNS 协议的正确运行。 在通过其他方法(最有可能是 NetBIOS 名称解析)查询名称之前,他们期望得到 NXDOMAIN 答案。 由于 DNS 服务器完全损坏并返回错误答案,因此永远不会查找正确的地址。

安装或卸载 IPv6 改变这种情况的原因很可能是因为与之相关的某些事情正在改变名称解析顺序(在尝试 DNS 之前使用其他方法进行查找)。 因此,解决方法是自行更改名称解析顺序。

真正的解决方法是要么更换为更好的 ISP(不会破坏既定协议的 ISP),要么运行您自己的 DNS 服务器(自从 VeriSign 拉取 类似的噱头;他们的做法更糟糕,因为改变 ISP 根本没有任何区别)。

参考资料:

I know this is a late answer, but in case someone else has the same problem, the key is the IP address, "24.28.193.9". A quick Google search reveals it seems to be related to your ISP completely breaking the DNS protocol by returning a fixed IP address for all non-existent domain names (the correct answer would be NXDOMAIN). Your network gateway is most probably just forwarding your queries to your ISP's name servers.

Your systems are relying on the correct operation of the DNS protocol. They are expecting a NXDOMAIN answer before querying the name via other methods (most probably NetBIOS name resolution). Since the DNS server is completely broken and returning an incorrect answer, the correct address is never looked up.

The reason installing or uninstalling IPv6 changes the situation is most probably because something related to it is changing the name resolution order (to look up using other methods before trying DNS). So, a workaround would be to change the name resolution order yourself.

The real fix would be to either change to a better ISP (one which does not break established protocols) or run your own DNS server (which is what I started doing on all systems I administer ever since VeriSign pulled a similar stunt; theirs was even worse in that changing ISPs made no difference at all).

References:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文