睡眠后 DNS 查找失败 - Windows 10

DNS lookup fails after sleep - Windows 10

几天后,在我的电脑睡觉后,所有名称查找都失败了。这会导致浏览器不加载任何页面。只有重新启动才能解决此问题,禁用和启用我的 Wifi 适配器不会。我看到一个 IPv6 名称服务器在 ipconfig 的输出中出现了之前不存在的睡眠后,这个名称服务器不起作用...

我正在使用最新的 Windows 10 Enterprise 安装,并且支持 Netgear JWNR2000T。我有一个不需要登录的互联网连接,只需将进入我家的以太网电缆连接到 netgear 即可。客户端通过 DHCP 配置。

在这开始发生时(2/3 天前)唯一安装的东西是 https://support.microsoft.com/en-us/kb/3140768、VS2015 更新 2 和一些应用程序更新。这似乎无关紧要。 netgear的固件很久没换了,是最新的,我也没有动过任何设置。

以下是睡眠前后 ipconfig、nslookup 和 ping 的输出。 DNS 服务器 192.168.1.1 是我的路由器。

红利问题:非权威答案google.com -> 192.168.8.1从何而来?鉴于 DNS 查询超时...

睡前

C:\Users\Diederick>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DEE_LU
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 4A-E2-44-F5-57-C5
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Dell Wireless 1830 802.11ac
   Physical Address. . . . . . . . . : 48-E2-44-F5-57-C5
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::981b:ae2e:c423:792e%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Saturday, 9 April, 2016 20:29:25
   Lease Expires . . . . . . . . . . : Sunday, 10 April, 2016 20:29:25
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 55108164
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-70-AC-97-48-E2-44-F5-57-C5
   DNS Servers . . . . . . . . . . . : 192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fb:10f0:26f9:a613:c376(Preferred)
   Link-local IPv6 Address . . . . . : fe80::10f0:26f9:a613:c376%19(Preferred)
   Default Gateway . . . . . . . . . : ::
   DHCPv6 IAID . . . . . . . . . . . : 318767104
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-70-AC-97-48-E2-44-F5-57-C5
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{7B2BB6D5-6516-4FBD-BADE-DF08B3490226}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\Diederick>nslookup google.com
Server:  UnKnown
Address:  192.168.1.1

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:400f:804::200e
          83.140.66.19
          83.140.66.57
          83.140.66.34
          83.140.66.49
          83.140.66.38
          83.140.66.45
          83.140.66.59
          83.140.66.29
          83.140.66.53
          83.140.66.27
          83.140.66.42
          83.140.66.44
          83.140.66.30
          83.140.66.15
          83.140.66.23

C:\Users\Diederick>ping google.com

Pinging google.com [83.140.66.42] with 32 bytes of data:
Reply from 83.140.66.42: bytes=32 time=14ms TTL=54

睡觉后

C:\Users\Diederick>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : DEE_LU
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Wireless LAN adapter Local Area Connection* 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 4A-E2-44-F5-57-C5
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Dell Wireless 1830 802.11ac
   Physical Address. . . . . . . . . : 48-E2-44-F5-57-C5
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::981b:ae2e:c423:792e%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.3(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Saturday, 9 April, 2016 20:29:25
   Lease Expires . . . . . . . . . . : Monday, 11 April, 2016 0:31:19
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 55108164
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1E-70-AC-97-48-E2-44-F5-57-C5
   DNS Servers . . . . . . . . . . . : fe80::ca51:95ff:fe9c:a949%11
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.{7B2BB6D5-6516-4FBD-BADE-DF08B3490226}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\Users\Diederick>nslookup google.com
DNS request timed out.
    timeout was 2 seconds.
Server:  UnKnown
Address:  fe80::ca51:95ff:fe9c:a949

Non-authoritative answer:
DNS request timed out.
    timeout was 2 seconds.
Name:    google.com
Address:  192.168.8.1


C:\Users\Diederick>nslookup google.com 192.168.1.1
Server:  UnKnown
Address:  192.168.1.1

Non-authoritative answer:
Name:    google.com
Addresses:  2a00:1450:400f:803::200e
          83.140.66.53
          83.140.66.23
          83.140.66.19
          83.140.66.44
          83.140.66.15
          83.140.66.49
          83.140.66.27
          83.140.66.30
          83.140.66.38
          83.140.66.29
          83.140.66.45
          83.140.66.59
          83.140.66.34
          83.140.66.57
          83.140.66.42


C:\Users\Diederick>ping google.com

Pinging google.com [192.168.8.1] with 32 bytes of data:
Request timed out.

在这种情况下可能有很多原因。有人反映安装1511更新后网络出现问题

您可以尝试按照微软网页上描述的步骤操作:http://windows.microsoft.com/en-us/windows-10/fix-network-connection-issues

当您找到更好的解决方案来解决您的具体问题时,我建议您使用解决方法:

要打开网络连接,请按 [Windows] + S 并键入:

ncpa.cpl

右键单击您的网络连接并转到“属性”。

单击“网络”选项卡。在“此连接使用以下项目”下,单击“Internet 协议版本 4”(TCP/IPv4) 或“Internet 协议版本 6”(TCP/IPv6),然后单击“属性”。

单击“使用以下 DNS 服务器地址”,然后在“首选 DNS 服务器”和“备用 DNS 服务器”框中,键入主要和次要 DNS 服务器的地址。 例如:8.8.8.8 和 8.8.4.4(Google DNS - IPv4)或任何其他 DNS 服务器地址 http://pcsupport.about.com/od/tipstricks/a/free-public-dns-servers.htm

更新

很遗憾听到这个消息。我必须说不记得 DNS 服务器地址是不寻常的。在重新启动或连接到另一个无线网络后,它们应该保持不变,因此问题一定出在您的系统中。这也可能表明您的计算机已被感染。

如果前面的步骤没有帮助,您还可以尝试以下操作:

首先,请确保您的系统中没有任何可以更改 DNS 地址的内容。再次转到网络连接并单击网络选项卡。在此连接下使用以下项目仔细检查每个项目。默认情况下你应该看到这样的东西:

如果您不认识 OS 中的某些项目,请尝试禁用它并检查问题是否已解决。

可能你已经这样做了,但我不得不问:你更新驱动程序了吗?这是 link:http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=JKRJ9

尝试禁用无线省电功能(此处有更多描述:http://en.community.dell.com/support-forums/laptop/f/3518/t/19661197

如果您真的需要这样做,无论您如何创建脚本来恢复您的 dns 设置,并在系统唤醒或重启后在任务计划程序中将其设置为 运行。然而,在睡眠后制作脚本 运行ning 可能很困难。这是创建脚本的指南:https://superuser.com/questions/463096/change-dns-with-script

以防其他人在这么久之后登陆这里 - 最初的 post 可以追溯到几年前:

我有一个带有 AMD Ryzen 2400G CPU 的 MSI 主板 - 请注意它们与 Windows 11 不兼容,所以我仍在使用 Windows 10 21H2。这是我家的台式电脑。我的首选 OS 是 Linux 但我需要跟上 Windows 的工作。

我在 2022 年 5 月更新 KB5013943 后遇到了这个问题。安装失败。在出现蓝屏死机并使用启动修复删除更新后,我根本无法让 DNS 客户端工作,并经历了你从微软支持那里得到的所有正常的废话。我也尝试了系统还原,但没有任何好处。所以 DNS 客户端是 运行 但名称解析不起作用。花了几个小时才查个水落石出。注意 - LAN 访问工作正常。

最后,我尝试了我在工作场所经常做的事情,那就是转到设备管理器中的网卡属性,您可以在其中关闭设备的 Windows 电源管理,并在我禁用的高级选项卡中'Energy Efficient Ethernet'。在这些步骤之后,名称解析在重新启动后再次开始工作。但是在使用睡眠 DNS 后仍然无法唤醒。所以需要重启。我就这样生活着。

也就是说我不得不放弃使用Sleep了。我认为当 Microsoft 调整电源管理并且网卡在睡眠期间静音时会出现这些问题。我不是专家,但建议在深入研究系统和注册表之前尝试我建议的步骤,以使 DNS 再次工作或担心您的路由器。

警告 - 当以太网卡无法解析名称时,我插入了一个 WiFi Dongle,这也无法使用 DNS。所以事情变得混乱的地方是在 Windows OS 网络代码中,而不是在设备级别。看起来在更新中更改了一小部分代码并且没有经过全面测试。
呻吟 - 此更新适用于 Win10 和 Win11,因此我的计算机不兼容 Win11 使用我想知道更新现在是否会导致各种问题。可能的临时解决方法 - 坚持使用 20H2。他们希望我们购买新电脑,让 MS 能够更好地控制我们的设备——Apple Way 或高速公路。使用 Linux.