从睡眠状态恢复后,DNS查找失败


4

我的Windows 7 Ultimate x64 PC有一个奇怪的网络问题。
当我从睡眠状态恢复时,不会加载任何网页(其他程序如Hamachi VPN也无法找到他们的服务器)。如果我使用谷歌浏览器,它会说DNS查找失败。但是,如果我然后打开命令窗口并使用NSLOOKUP对刚刚失败的网页执行查找,则查找似乎正常工作。因此命令提示符能够执行查找,而其他应用程序(如Web浏览器)则不能。

我可以通过禁用然后在“网络和共享中心”中启用网络适配器来清除此问题。这样做之后,一切都恢复了。不过,每次从睡眠中恢复时都必须这样做是很痛苦的。

任何人都知道原因,或者建议如何排除故障?


可以试试不同的网络驱动程序吗?这是使用所有浏览器还是仅使用Chrome?
jmreicha

它不是特定于浏览器,恰好是最明显的影响。例如,Hamachi VPN客户端也存在问题。它的intel NIC和Intel只提供一个驱动程序。我甚至不知道我会在哪里得到另一个。
Tim Long

@TimLong你能解决这个问题吗?在我改变局域网上的DNS设置后,本周早些时候我开始遇到完全相同的行为。我所做的是安装Windows Server 2008 R2作为具有DNS服务器角色的域控制器,并将一些计算机加入域。问题似乎仅限于通过以太网电缆连接到网络的一台计算机(域的成员)。LAN连接仍然可以正常工作,但任何WAN连接都没有,即使在LAN和WAN中正确解析了名称。
Kallja

您是否访问过网络设备并禁用了电源管理?
SDsolar 2017年

Answers:


3

更改高级电源配置文件属性中的设置,以便LAN适配器不会进入休眠/断电状态。

无论您的网络适配器如何,都可以禁用它。

资料来源:Microsoft Technet

使用用户界面配置电源管理

打开或关闭电源管理功能

  1. 打开网络和共享中心(单击“开始”按钮,在“开始搜索”框中键入“网络和共享”,然后按Enter键)。

  2. 单击导航窗格左上角的“更改适配器设置”链接。

  3. 右键单击要启用/禁用电源管理支持的网络连接,然后单击“属性”。

  4. 单击配置。

  5. 在“电源管理”选项卡上,选中或清除“允许计算机关闭此设备以节省电量”复选框。

    选中后,将在网络适配器上启用电源管理。

    清除后,网络适配器上的电源管理将被禁用。


如果他已集成NIC,则无法做任何事情。
HackToHell

1
您仍然可以更改它的电源选项,因为它基于Windows而不是基于适配器。请参阅Microsoft technet文章中的上述修订答案。
HaydnWVN

3

此问题的一个原因是存在虚拟网络适配器,例如随VirtualBox或VMWare一起安装的适配器。

(示例)VMWare或AT&T网络客户端的虚拟网络适配器的出现似乎导致从睡眠状态恢复后通过无线恢复DNS操作的问题。禁用虚拟适配器似乎允许在从睡眠状态恢复后继续正常联网。

资料来源:http//answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-no-dns-or-no-network-after-resume-wake/c1253ab0-4793-449e- 8975-a900ce7dec4f?AUTH = 1


2

检查是否列出了多个DNS服务器。如果您这样做,请确保所有这些都有效。混合使用好的和坏的DNS服务器会导致非常不一致的DNS行为。

如果从DHCP服务器获取DNS服务器,请检查DHCP服务器是否配置了多个DNS以及它们是否都正确。


这是一个奇怪的情况不是吗。多个DNS服务器的重点是冗余,即如果其中一个是坏的,其他DNS服务器就会接管。因此,您建议该功能在存在错误的DNS服务器时不起作用,这会使多个DNS服务器变得毫无意义。
Tim Long

多个DNS服务器的重点只是在极少数情况下有一个回退,即其中一个短暂无法访问和/或在多个系统之间分配负载。仍然假设列为DNS服务器的系统实际上是DNS服务器,它们大部分时间都会工作,并且它们不会返回不正确的信息。当这些假设变得不正确时(无论是由于服务器移动还是仅仅是错别字),都会发生不好的事情。
Seth Noble 2012年

2

在Windows 8和8.1中相同:睡眠后,Windows DNS客户端无法正常工作。打开服务控件,查找DNS客户端并重新启动它。DNS查找应该再次工作而无需重新启动计算机。


1

如果你有hamachi,也许是罪魁祸首,在我卸载它之后再次工作,另一种选择是尝试启用和禁用hamachi网络适配器


1

重置网络设备

重置“Realtek PCIe GBE系列控制器”为我解决了这个问题

devcon restart "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5: Restarted
1 device(s) restarted.

卸载realtek网络驱动程序无法修复它

卸载realtek网络驱动程序并不能解决它。当我从睡眠中返回时,dns查找仍然经常被破坏

测试

在重置之前nslookup需要几秒钟

nslookup google.com
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  8.8.8.8

DNS request timed out.
    timeout was 2 seconds.
Name:    google.com
Address:  2a00:1450:400f:804::200e

重置后立即返回

nslookup google.com
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:400f:804::200e
          216.58.209.142

我的DNS服务器是8.8.8.8而不是我的isp,因为我改变了它以防万一。它不是

netsh interface ipv4 add dnsserver "Local Area Connection" address=8.8.8.8

测试后我重置dns服务器,nslookup仍然有效

netsh interface ip set dns "Local Area Connection" dhcp

在重置之前dhcp更新超时

C:\Users\User>ipconfig /release & ipconfig /renew

Windows IP Configuration


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::a1cf:1ddf:5c50:191%8
   Autoconfiguration IPv4 Address. . : 169.254.1.145
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . :

Ethernet adapter VMware Network Adapter VMnet8:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::3dae:5a21:fdc0:e49e%6
   IPv4 Address. . . . . . . . . . . : 192.168.217.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Tunnel adapter isatap.{1D0B324E-565A-4A26-9ED5-5C638FA964E3}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{EE0FF7D8-C160-4203-91ED-73706E508332}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Windows IP Configuration

An error occurred while renewing interface Ethernet : unable to contact your DHCP server. Request has timed out.

在网络设备复位之前,我也做了这些复位命令。它可能不相关但可能不是因为他们说完成它需要os重启。这可能意味着网络设备重启

netsh interface ip reset
Resetting Global, OK!
Resetting Interface, OK!
Resetting Unicast Address, OK!
Resetting Neighbor, OK!
Resetting Path, OK!
Resetting , failed.
Access is denied.

Resetting , OK!
Restart the computer to complete this action.

netsh winsock reset catalog
You must restart the computer in order to complete the reset.

我还为与设备关联的网络连接禁用了VMware Bridge协议,这可能是无关紧要的

系统

我的系统是

Operating System
    Windows 8.1 Enterprise 64-bit
Motherboard
    ASUSTeK COMPUTER INC. P8Z77-M PRO (LGA1155) 30 °C

devcon driverfiles "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5
    Name: Realtek PCIe GBE Family Controller
    Driver installed from C:\WINDOWS\INF\oem30.inf [RTL8168FB.ndi]. 5 file(s) used by driver:
        C:\WINDOWS\system32\DRIVERS\au630x64.sys
        C:\WINDOWS\system32\RtNicProp64.dll
        C:\Program Files\ASUS\AMDA\U3\U3.dll
        C:\Program Files\ASUS\AMDA\U3\U3BoostSvr64.dll
        C:\Program Files\ASUS\AMDA\U3\U3BoostSvr64.exe.manifest
1 matching device(s) found.

devcon drivernodes "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5
    Name: Realtek PCIe GBE Family Controller
Driver node #0:
    Inf file is C:\WINDOWS\INF\oem30.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Realtek
    Driver date is 2013-03-14
    Driver version is 8.13.314.2013
    Driver node rank is 16719872
    Driver node flags are 0000B045
        Inf is digitally signed
Driver node #1:
    Inf file is C:\WINDOWS\INF\oem30.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Realtek
    Driver date is 2013-03-14
    Driver version is 8.13.314.2013
    Driver node rank is 16711680
    Driver node flags are 0004B045
        Inf is digitally signed
Driver node #2:
    Inf file is C:\WINDOWS\INF\oem81.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Realtek
    Driver date is 2012-02-03
    Driver version is 7.52.203.2012
    Driver node rank is 16719872
    Driver node flags are 00003045
        Inf is digitally signed
Driver node #3:
    Inf file is C:\WINDOWS\INF\netrt630x64.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Microsoft
    Driver date is 2013-05-10
    Driver version is 8.1.510.2013
    Driver node rank is 16719872
    Driver node flags are 00102045
        Inf is digitally signed
1 matching device(s) found.

卸载后,realtek网络驱动程序窗口恢复为此驱动程序没有唤醒问题

C:\Users\User>devcon driverfiles "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5
    Name: Realtek PCIe GBE Family Controller
    Driver installed from C:\WINDOWS\INF\netrt630x64.inf [RTL8168FB.ndi]. 1 file(s) used by driver:
        C:\WINDOWS\system32\DRIVERS\Rt630x64.sys
1 matching device(s) found.

C:\Users\User>devcon drivernodes "PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09"
PCI\VEN_10EC&DEV_8168&SUBSYS_85051043&REV_09\4&21A1C3AE&0&00E5
    Name: Realtek PCIe GBE Family Controller
Driver node #0:
    Inf file is C:\WINDOWS\INF\oem81.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Realtek
    Driver date is 2012-02-03
    Driver version is 7.52.203.2012
    Driver node rank is 16719872
    Driver node flags are 00002045
        Inf is digitally signed
Driver node #1:
    Inf file is C:\WINDOWS\INF\netrt630x64.inf
    Inf section is RTL8168FB.ndi
    Driver description is Realtek PCIe GBE Family Controller
    Manufacturer name is Realtek
    Provider name is Microsoft
    Driver date is 2013-05-10
    Driver version is 8.1.510.2013
    Driver node rank is 16719872
    Driver node flags are 00142045
        Inf is digitally signed
1 matching device(s) found.

0

打开CMD并尝试使用此命令清除DNS缓存: ipconfig /flushdns 之后,运行测试ping到google.com : ping google.com. 如果这项工作你应该成功google.com。希望这有用!


欢迎来到超级用户!这实际上是一个评论,而不是原始问题的答案。要对作者进行批评或要求澄清,请在帖子下方留言 - 您可以随时评论自己的帖子,一旦您有足够的声誉,您就可以对任何帖子发表评论
DavidPostill
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.