大网数据广告活动
服务器运维问答

How does bind 9 choose a forwarder when multiple are configured?

· 52CE 我爱测

If I have a dns view that has four forwarders configured, how does bind choose which forwarder to use? And what happens if the first one chosen does not respond in a timely manner? I can't find any info in the bind 9 documentatio…

问题原文

原帖链接 · Rick · CC BY-SA 4.0

If I have a dns view that has four forwarders configured, how does bind choose which forwarder to use? And what happens if the first one chosen does not respond in a timely manner? I can't find any info in the bind 9 documentation on this.

Does bind try the first forwarder and if no response go to the second one and so on? Or maybe bind knows which forwarder is closest. I need to know how bind 9 decides which forward to use so I can make the appropriate design decisions.

已采纳解答

原帖链接 · Lacek · CC BY-SA 4.0

Bind uses a methodology named "smoothed round-trip time". Basically it chooses the fastest responding server, and prefers using that one. From time to time, bind queries the other servers in order to update the SRTT values, which allows servers to "catch up", but also decays the chance of slower servers to become the primary forwarder. This also this means that a (small) portion of your queries will use the slowest server, no matter what.

If a server is not responding, another one is tried, and the non-responsive server's SRTT value gets incremented.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-12-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。