具有两个活动网络连接的 Windows 7 笔记本电脑在某些情况下不会执行 DNS AAAA 查找

具有两个活动网络连接的 Windows 7 笔记本电脑在某些情况下不会执行 DNS AAAA 查找

我的笔记本电脑有两个网络接口。以太网接口直接连接到我的提供商的边缘路由器。它通过 SLAAC 获取 IPv6 地址。我手动设置 IPv6 DNS 服务器。无线接口连接到不理解 IPv6 的 CPE 路由器。

如果禁用无线接口,我可以使用以太网接口毫无问题地访问 IPv6 互联网。

当两个接口都启用时我遇到了问题无线接口通过 DHCP 获取其 IPv4 DNS 服务器。让我们看看两种情况。

  1. 无线接口通过 DHCP 获取 IPv4 DNS 服务器 - CPE 路由器 (192.168.0.1) 将其地址作为 DNS 服务器发送。在这种情况下,Windows 7 将不会执行 AAAA 查找。浏览器使用 IPv4 传输访问双栈网站。我无法使用域名访问仅支持 IPv6 的网站。我可以使用 IPv6 文字而不是域名访问支持 IPv6 的网站。

  2. 无线接口手动配置了 OpenDNS DNS 服务器 - Windows 7 使用 IPv6 传输(通过以太网)执行 AAAA 查找。一切正常。

我的双宿主设置绝对不是标准的。不过,这种行为对我来说非常奇怪。我的以太网接口中有一个有效的 IPv6 接口。为什么 Windows 在场景 #1 中不会尝试 AAAA 查找?

我已经包含了 ipconfig /all 和 netstat -rn 的输出。

C:\Program Files\Console>ipconfig /all                                                                   

Windows IP Configuration                                                                                 

   Host Name . . . . . . . . . . . . : jake                                                              
   Primary Dns Suffix  . . . . . . . :                                                                   
   Node Type . . . . . . . . . . . . : Hybrid                                                            
   IP Routing Enabled. . . . . . . . : No                                                                
   WINS Proxy Enabled. . . . . . . . : No                                                                
   DNS Suffix Search List. . . . . . : res.openband.net                                                  

Wireless LAN adapter Wireless Network Connection 2:                                                      

   Media State . . . . . . . . . . . : Media disconnected                                                
   Connection-specific DNS Suffix  . :                                                                   
   Description . . . . . . . . . . . : Microsoft Virtual WiFi Miniport Adapter                           
   Physical Address. . . . . . . . . : C0-CB-38-06-54-F9                                                 
   DHCP Enabled. . . . . . . . . . . : Yes                                                               
   Autoconfiguration Enabled . . . . : Yes                                                               

Wireless LAN adapter Wireless Network Connection:                                                        

   Connection-specific DNS Suffix  . : res.openband.net                                                  
   Description . . . . . . . . . . . : DW1520 Wireless-N WLAN Half-Mini Card                             
   Physical Address. . . . . . . . . : C0-CB-38-06-54-F9                                                 
   DHCP Enabled. . . . . . . . . . . : Yes                                                               
   Autoconfiguration Enabled . . . . : Yes                                                               
   Link-local IPv6 Address . . . . . : fe80::fc39:9293:7d01:4a75%13(Preferred)                           
   IPv4 Address. . . . . . . . . . . : 192.168.0.105(Preferred)                                          
   Subnet Mask . . . . . . . . . . . : 255.255.255.0                                                     
   Lease Obtained. . . . . . . . . . : Wednesday, July 11, 2012 7:35:21 AM                               
   Lease Expires . . . . . . . . . . : Thursday, July 12, 2012 9:49:46 AM                                
   Default Gateway . . . . . . . . . : 192.168.0.1                                                       
   DHCP Server . . . . . . . . . . . : 192.168.0.1                                                       
   DHCPv6 IAID . . . . . . . . . . . : 364956472                                                         
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-80-F8-14-5C-26-0A-03-23-5C                         
   DNS Servers . . . . . . . . . . . : 208.67.222.222                                                    
   NetBIOS over Tcpip. . . . . . . . : Enabled                                                           

Ethernet adapter Local Area Connection:                                                                  

   Connection-specific DNS Suffix  . : res.openband.net                                                  
   Description . . . . . . . . . . . : Intel(R) 82577LM Gigabit Network Connection        
   Physical Address. . . . . . . . . : 5C-26-0A-03-23-5C                                  
   DHCP Enabled. . . . . . . . . . . : Yes                                                
   Autoconfiguration Enabled . . . . : Yes                                                
   IPv6 Address. . . . . . . . . . . : 2607:2600:1:850:c0e9:211a:fd05:4e0b(Preferred)     
   Temporary IPv6 Address. . . . . . : 2607:2600:1:850:3d29:1839:62db:c4c1(Preferred)     
   Link-local IPv6 Address . . . . . : fe80::c0e9:211a:fd05:4e0b%12(Preferred)            
   IPv4 Address. . . . . . . . . . . : 10.52.2.51(Preferred)                              
   Subnet Mask . . . . . . . . . . . : 255.255.254.0                                      
   Lease Obtained. . . . . . . . . . : Monday, July 09, 2012 8:55:07 AM                   
   Lease Expires . . . . . . . . . . : Thursday, July 12, 2012 7:30:05 AM                 
   Default Gateway . . . . . . . . . : fe80::214:6aff:fe51:7f3f%12                        
                                       10.52.2.1                                          
   DHCP Server . . . . . . . . . . . : 216.40.77.244                                      
   DNS Servers . . . . . . . . . . . : 2620:0:ccc::2                                      
                                       2620:0:ccd::2                                      
                                       216.40.77.126                                      
                                       216.40.77.244                                      
   NetBIOS over Tcpip. . . . . . . . : Enabled                                            

Ethernet adapter VMware Network Adapter VMnet1:                                              

   Connection-specific DNS Suffix  . :                                                       
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1            
   Physical Address. . . . . . . . . : 00-50-56-C0-00-01                                     
   DHCP Enabled. . . . . . . . . . . : No                                                    
   Autoconfiguration Enabled . . . . : Yes                                                   
   Link-local IPv6 Address . . . . . : fe80::4c61:495b:229e:281e%14(Preferred)               
   IPv4 Address. . . . . . . . . . . : 192.168.40.1(Preferred)                               
   Subnet Mask . . . . . . . . . . . : 255.255.255.0                                         
   Default Gateway . . . . . . . . . :                                                       
   DHCPv6 IAID . . . . . . . . . . . : 469782614                                             
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-80-F8-14-5C-26-0A-03-23-5C             
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1                                    
                                       fec0:0:0:ffff::2%1                                    
                                       fec0:0:0:ffff::3%1                                    
   NetBIOS over Tcpip. . . . . . . . : Enabled                                               

Ethernet adapter VMware Network Adapter VMnet8:                                              

   Connection-specific DNS Suffix  . :                                                       
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8            
   Physical Address. . . . . . . . . : 00-50-56-C0-00-08                                     
   DHCP Enabled. . . . . . . . . . . : No                                                    
   Autoconfiguration Enabled . . . . : Yes                                                   
   Link-local IPv6 Address . . . . . : fe80::f996:61eb:8c00:45e6%15(Preferred)               
   IPv4 Address. . . . . . . . . . . : 192.168.17.1(Preferred)                               
   Subnet Mask . . . . . . . . . . . : 255.255.255.0                                         
   Default Gateway . . . . . . . . . :                                                       
   DHCPv6 IAID . . . . . . . . . . . : 486559830                                             
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-17-80-F8-14-5C-26-0A-03-23-5C             
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1                                    
                                       fec0:0:0:ffff::2%1                                    
                                       fec0:0:0:ffff::3%1                                    
   NetBIOS over Tcpip. . . . . . . . : Enabled    

C:\Program Files\Console>netstat -rn                                                               
===========================================================================                        
Interface List                                                                                     
 17...c0 cb 38 06 54 f9 ......Microsoft Virtual WiFi Miniport Adapter                              
 13...c0 cb 38 06 54 f9 ......DW1520 Wireless-N WLAN Half-Mini Card                                
 12...5c 26 0a 03 23 5c ......Intel(R) 82577LM Gigabit Network Connection                          
 11...5c ac 4c f8 b8 55 ......Bluetooth Device (Personal Area Network)                             
 14...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1                           
 15...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8                           
  1...........................Software Loopback Interface 1                                        
===========================================================================                        

IPv4 Route Table                                                                                   
===========================================================================                        
Active Routes:                                                                                     
Network Destination        Netmask          Gateway       Interface  Metric                        
          0.0.0.0          0.0.0.0        10.52.2.1       10.52.2.51     10                        
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.105    100                        
        10.52.2.0    255.255.254.0         On-link        10.52.2.51    261                        
       10.52.2.51  255.255.255.255         On-link        10.52.2.51    261                        
      10.52.3.255  255.255.255.255         On-link        10.52.2.51    261                        
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306                        
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306                        
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306                        
      192.168.0.0    255.255.255.0         On-link     192.168.0.105    306                        
    192.168.0.105  255.255.255.255         On-link     192.168.0.105    306                        
    192.168.0.255  255.255.255.255         On-link     192.168.0.105    306                        
     192.168.17.0    255.255.255.0         On-link      192.168.17.1    276                        
     192.168.17.1  255.255.255.255         On-link      192.168.17.1    276                        
   192.168.17.255  255.255.255.255         On-link      192.168.17.1    276                        
     192.168.40.0    255.255.255.0         On-link      192.168.40.1    276                        
     192.168.40.1  255.255.255.255         On-link      192.168.40.1    276                        
   192.168.40.255  255.255.255.255         On-link      192.168.40.1    276                        
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306                        
        224.0.0.0        240.0.0.0         On-link        10.52.2.51    261                        
        224.0.0.0        240.0.0.0         On-link     192.168.0.105    306                        
        224.0.0.0        240.0.0.0         On-link      192.168.40.1    276                        
        224.0.0.0        240.0.0.0         On-link      192.168.17.1    276                        
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306                        
  255.255.255.255  255.255.255.255         On-link        10.52.2.51    261                        
  255.255.255.255  255.255.255.255         On-link     192.168.0.105    306                        
  255.255.255.255  255.255.255.255         On-link      192.168.40.1    276                        
  255.255.255.255  255.255.255.255         On-link      192.168.17.1    276                        
===========================================================================                        
Persistent Routes:                                                                                 
  None                                                                                                                                        
IPv6 Route Table                                                                                   
===========================================================================                        
Active Routes:                                                                                     
 If Metric Network Destination      Gateway                                                        
 12    261 ::/0                     fe80::214:6aff:fe51:7f3f                                       
  1    306 ::1/128                  On-link                                                        
 12     13 2607:2600:1:850::/64     On-link                                                        
 12    261 2607:2600:1:850:3d29:1839:62db:c4c1/128                                                 
                                    On-link                                                        
 12    261 2607:2600:1:850:c0e9:211a:fd05:4e0b/128                                                 
                                    On-link                                                        
 12    261 fe80::/64                On-link                                                        
 13    281 fe80::/64                On-link                                                        
 14    276 fe80::/64                On-link                                                        
 15    276 fe80::/64                On-link                                                        
 14    276 fe80::4c61:495b:229e:281e/128                                                           
                                    On-link                                                        
 12    261 fe80::c0e9:211a:fd05:4e0b/128                                                           
                                    On-link                                                        
 15    276 fe80::f996:61eb:8c00:45e6/128                                                           
                                    On-link                                                        
 13    281 fe80::fc39:9293:7d01:4a75/128                                                           
                                    On-link                                                        
  1    306 ff00::/8                 On-link                                                        
 12    261 ff00::/8                 On-link                                                        
 13    281 ff00::/8                 On-link                                                        
 14    276 ff00::/8                 On-link                                                        
 15    276 ff00::/8                 On-link                                                        
===========================================================================                        
Persistent Routes:                                                                                 
  None                                                                                             

答案1

我怀疑您的 IPv4 CPE 设备上的名称服务器/代理不支持 AAAA 记录或类似的东西。

尝试对 AAAA 记录执行 nslookup,看看是否真的没有任何结果:

Z:\>nslookup 
Default Server:  s01.lab.local 
Address:  2001:DB8::ffff

> set type=aaaa
> www.facebook.com 

Server:  s01.lab.local 
Address:  2001:DB8::ffff

Non-authoritative answer: 
Name:    www.facebook.com Address: 
2a03:2880:2110:3f02:face:b00c::

如果是这种情况,请尝试使用支持 AAAA 记录的“静态”DNS 服务器。(例如谷歌的 8.8.8.8)

相关内容