我在networking上configuration了Dnsmasq,为networking上的各种IPv4 IP地址提供名称。
当我在我的客户端Windows 7旗舰版64位机器上启用了IPv4时,使用他们的DNS名称Ping其他机器工作正常,但是当我在Win7机器的协议列表中启用IPv6支持时,我无法再使用他们的机器DNS名称。

我甚至尝试在ping命令中添加-4参数,并尝试使用-S命令来指定发送ping时使用的源ip。
未启用Windows 7计算机上的IPv6:
C:\Console2>ping asus.leerdomain.local Pinging asus.leerdomain.local [192.168.1.149] with 32 bytes of data: Reply from 192.168.1.149: bytes=32 time<1ms TTL=128 Reply from 192.168.1.149: bytes=32 time<1ms TTL=128
启用Windows 7计算机上的IPv6:
C:\utils\dig>ping asus.leerdomain.local Ping request could not find host asus.leerdomain.local. Please check the name an d try again. C:\utils\dig>ping -4 asus.leerdomain.local Ping request could not find host asus.leerdomain.local. Please check the name an d try again. C:\utils\dig>ping -4 -S192.168.1.149 asus.leerdomain.local asus.leerdomain.local is not a valid address.
在Windows 7计算机上启用和未启用IPv6:
C:\utils\dig>dig asus.leerdomain.local ; <<>> DiG 9.3.2 <<>> asus.leerdomain.local ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1401 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;asus.leerdomain.local. IN A ;; ANSWER SECTION: asus.leerdomain.local. 0 IN A 192.168.1.149 ;; Query time: 1 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Thu Nov 10 14:50:01 2011 ;; MSG SIZE rcvd: 55
您的机器configuration为响应IPv4 ping,不响应IPv6 ping。 启用IPv6后,其他计算机在尝试parsing名称时会获取IPv6地址,因为首选IPv6。 结果,他们发出了一个ping没有得到答复。
ping -4将无法工作,因为您无法对IPv6地址执行IPv4 ping。
如果你想让机器响应IPv6 ping,你必须弄清楚是什么阻止了它(防火墙,很可能),并修复了configuration。