dns服务器 响应超时,DNS 客户端解析超时 - Windows Server | Microsoft Docs

NET:DNS:DNS 客户端解析超时

10/13/2020

本文内容

本文档介绍在 DNS 客户端上配置一个或多个域名系统 (DNS) 服务器 IP 时存在的回退和超时Windows行为。

适用于:  Windows 10 - 所有版本

原始 KB 编号:   2834226

摘要

配置具有多个 DNS 服务器 IP 的 DNS 客户端会为 DNS 基础结构增加额外的容错能力。 如果唯一配置的 DNS 服务器、基础网络链接或将给定客户端连接到 DNS 服务器的支持网络基础结构出现故障,则添加多个 DNS 服务器 IP 可以继续解析 DNS 名称。 此类名称故障可能导致应用程序或组件挂起、等待从属超时到期的资源中断,直接或间接导致操作失败。

出于这些原因,建议将任何 Windows 客户端配置为具有多个 DNS 服务器,但请注意 Windows 客户端解析过程很重要,因为根据已配置的 DNS 服务器数量,这有所不同。

在 NIC 上配置单个 DNS 服务器时,DNS 客户端的默认行为是什么

在具有单个 NIC (的 Windows XP、Windows 7 和 Windows 8 客户端上测试) :

从 (开始开始的时间)

操作

0

客户端查询 DNS 服务器

1

如果在 1 秒后未收到响应,客户端将再次查询 DNS 服务器

2

如果在 1 秒后未收到响应,客户端将再次查询 DNS 服务器

4

如果在 2 秒后未收到响应,客户端将再次查询 DNS 服务器

8

如果在 4 秒后未收到响应,客户端将再次查询 DNS 服务器

10

如果在 2 秒后未收到响应,客户端将停止查询

DNS 服务器的任何名称错误响应将导致进程停止 - 如果响应为负,客户端不会重试。

在这种情况下,客户端在超时前尝试查询同一 DNS 服务器五次。

示例

Windows 8配置了单个 DNS 服务器的客户端,查询 Microsoft.com

客户端上的 Ipconfig

IPv4 地址。 . . . . . . . . . . :10.0.0.31 (首选)

DNS 服务器 。 . . . . . . . . . . : 10.0.0.1

网络监视器输出

Time Time Offset TimeDelta Source Dest Details

6:23:33.8063812 0.0000000 0.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0xA5B4,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

6:23:34.8026943 0.9963131 0.9963131 10.0.0.31 10.0.0.1 DNS:QueryId = 0xA5B4,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:23:35.8042696 1.9978884 1.0015753 10.0.0.31 10.0.0.1 DNS:QueryId = 0xA5B4,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:23:37.8184257 4.0120445 2.0141561 10.0.0.31 10.0.0.1 DNS:QueryId = 0xA5B4,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

6:23:41.8394589 8.0330777 4.0210332 10.0.0.31 10.0.0.1 DNS:QueryId = 0xA5B4,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

在 NIC 上配置两个 DNS Windows XP DNS 客户端的默认行为是什么

此行为是在具有单个 NIC (XP Windows上测试的以下) :

从 (开始开始的时间)

操作

0

客户端查询列表的第一台 DNS 服务器

1

如果在 1 秒后未收到响应,客户端将查询列表的第二个 DNS 服务器,同时再次查询第一个 DNS 服务器

3

如果在 2 秒后未收到响应,客户端将再次查询第一台 DNS 服务器

7

如果在 4 秒后未收到响应,客户端将再次查询第一台 DNS 服务器

9

如果在 2 秒后未收到响应,客户端将停止查询

任何 DNS 服务器的任何名称错误响应都将导致进程停止 - 如果响应为负数,客户端不会重试下一台服务器。 客户端仅在上一台服务器无法访问时尝试新服务器。

在此方案中,客户端随后主要尝试查询第一台 DNS 服务器,而辅助服务器查询一次。

示例

WindowsXP 客户端,配置了两台 DNS 服务器查询 Microsoft.com

客户端上的 Ipconfig

IPv4 Address. . . . . . . . . . . : 10.0.0.31(Preferred)

DNS Servers . . . . . . . . . . . : 10.0.0.1

10.0.0.2

网络监视器输出

Time Time Offset TimeDelta Source Dest Details

6:39:09.8013750 0.0000000 0.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0x1960, QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:39:10.8013750 1.0000000 1.0000000 10.0.0.31 10.0.0.2 DNS:QueryId = 0x1960,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:39:10.8013750 1.0000000 0.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0x1960,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

6:39:12.8013750 3.0000000 2.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0x1960,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:39:16.8013750 7.0000000 4.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0x1960, QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

在 NIC 上配置两个 DNS Windows 7 或 Windows 8 DNS 客户端的默认行为是什么

该行为是在 (7 Windows NIC Windows 8客户端上测试的) :

从 (开始开始的时间)

操作

0

客户端查询列表的第一台 DNS 服务器

1

如果在 1 秒后未收到响应,客户端将查询列表的第二个 DNS 服务器

2

如果在 1 秒后未收到响应,客户端将再次查询列表的第二个 DNS 服务器

4

如果在 2 秒后未收到响应,客户端将同时查询列表中的所有服务器

8

如果在 4 秒后未收到响应,客户端将同时查询列表中的所有服务器

10

如果在 2 秒后未收到响应,客户端将停止查询

任何 DNS 服务器的任何名称错误响应都将导致进程停止 - 如果响应为负数,客户端不会重试下一台服务器。 客户端仅在上一台服务器无法访问时尝试新服务器。

示例

Windows 8配置了两个 DNS 服务器查询服务器的客户端 Microsoft.com

客户端上的 Ipconfig

IPv4 Address. . . . . . . . . . . : 10.0.0.31(Preferred)

DNS Servers . . . . . . . . . . . : 10.0.0.1

10.0.0.2

网络监视器输出

Time Time Offset TimeDelta Source Dest Details

6:28:12.5060330 0.0000000 0.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0x7B1C,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

6:28:13.5129164 1.0068834 1.0068834 10.0.0.31 10.0.0.2 DNS:QueryId = 0x7B1C,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:28:14.5124283 2.0063953 0.9995119 10.0.0.31 10.0.0.2 DNS:QueryId = 0x7B1C,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:28:16.5288823 4.0228493 2.0164540 10.0.0.31 10.0.0.1 DNS:QueryId = 0x7B1C,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:28:16.5289050 4.0228720 0.0000227 10.0.0.31 10.0.0.2 DNS:QueryId = 0x7B1C, QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:28:20.5582196 8.0521866 4.0293146 10.0.0.31 10.0.0.1 DNS:QueryId = 0x7B1C,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

6:28:20.5582475 8.0522145 0.0000279 10.0.0.31 10.0.0.2 DNS:QueryId = 0x7B1C,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

在 NIC 上配置三台或三台以上 DNS 服务器时,DNS 客户端的默认行为是什么

使用其中多少个以及超时是什么?

在具有单个 NIC (的 Windows XP、Windows 7 和 Windows 8 客户端上测试) :

从 (开始开始的时间)

操作

0

客户端查询列表的第一台 DNS 服务器

1

如果在 1 秒后未收到响应,客户端将查询列表的第二个 DNS 服务器

2

如果在 1 秒后未收到响应,客户端将查询列表的第三个 DNS 服务器

4

如果在 2 秒后未收到响应,客户端将同时查询列表中的所有服务器

8

如果在 4 秒后未收到响应,客户端将再次同时查询列表中的所有服务器

10

如果在 2 秒后未收到响应,客户端将停止查询

任何 DNS 服务器的任何名称错误响应都将导致进程停止 - 如果响应为负数,客户端不会重试下一台服务器。 客户端仅在上一台服务器无法访问时尝试新服务器。

如果唯一可到达的服务器位于位置 4 或更高位置,则实际尝试它之前,我们预计原始查询的延迟至少为 4 秒。 如果请求 DNS 解析的应用程序的应用程序解析超时值小于此值,这可能会导致问题。 之前查询此服务器的唯一方法就是,在前三个位置进行设置。

示例

配置了五个 DNS 服务器查询服务器的客户端 Microsoft.com

客户端上的 Ipconfig

Pv4 Address. . . . . . . . . . . : 10.0.0.31(Preferred)

DNS Servers . . . . . . . . . . . : 10.0.0.1

10.0.0.2

10.0.0.3

10.0.0.4

10.0.0.5

网络监视器输出

Time Time Offset TimeDelta Source Dest Details

9:50:19.4165728 0.0000000 0.0000000 10.0.0.31 10.0.0.1 DNS:QueryId = 0xE2A2,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

9:50:20.4030068 0.9864340 0.9864340 10.0.0.31 10.0.0.2 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:21.4053190 1.9887462 1.0023122 10.0.0.31 10.0.0.3 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:23.4022371 3.9856643 1.9969181 10.0.0.31 10.0.0.1 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:23.4022575 3.9856847 0.0000204 10.0.0.31 10.0.0.2 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:23.4022646 3.9856918 0.0000071 10.0.0.31 10.0.0.3 DNS:QueryId = 0xE2A2,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

9:50:23.4023130 3.9857402 0.0000484 10.0.0.31 10.0.0.4 DNS:QueryId = 0xE2A2,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

9:50:23.4023347 3.9857619 0.0000217 10.0.0.31 10.0.0.5 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:27.4113578 7.9947850 4.0090231 10.0.0.31 10.0.0.1 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:27.4113788 7.9948060 0.0000210 10.0.0.31 10.0.0.2 DNS:QueryId = 0xE2A2,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

9:50:27.4113860 7.9948132 0.0000072 10.0.0.31 10.0.0.3 DNS:QueryId = 0xE2A2,QUERY (Standard query) ,Query for microsoft.com of type Host Addr on class Internet

9:50:27.4113932 7.9948204 0.0000072 10.0.0.31 10.0.0.4 DNS:QueryId = 0xE2A2, QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

9:50:27.4114034 7.9948306 0.0000102 10.0.0.31 10.0.0.5 DNS:QueryId = 0xE2A2,QUERY (Standard query) , Query for microsoft.com of type Host Addr on class Internet

更多信息

如果客户端具有多个 NIC 活动状态,并且配置了不同的 DNS 服务器,则客户端解析行为会略有不同。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值