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

Does a DNS resolver query the next name server if it receives a rcode of NXDOMAIN or SERVFAIL from the first one?

· 52CE 我爱测

I queried for www.domaindoesenotexist.com. Will my DNS resolver query the next .com gTLD server if it receives rcode of NXDomain of Servfail from the first?

问题原文

原帖链接 · Kaushal Deodhar · CC BY-SA 3.0

I queried for www.domaindoesenotexist.com. Will my DNS resolver query the next .com gTLD server if it receives rcode of NXDomain of Servfail from the first?

已采纳解答

原帖链接 · Andrew B · CC BY-SA 3.0

This answer assumes that we're discussing a recursive DNS server. (not a stub resolver)

  • In the case of NXDOMAIN, the next server is not tried.

  • Womble is correct, there is no need to continue polling DNS servers.

  • That said, it should be noted that recursive server will see additional lookups from stub resolvers that implement DNS search suffixes. Search suffixes make it necessary to secure a NXDOMAIN for every possible permutation of the query and the configured suffixes. This is different from the usual case, where the stub resolver is typically "dumb" and does not make additional queries based on the answer.

  • In the case of SERVFAIL, the next server is attempted.

https://www.rfc-editor.org/rfc/rfc1034#section-5.3.3

     d. if the response shows a servers failure or other
        bizarre contents, delete the server from the SLIST and
        go back to step 3.

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

资料来源与适用范围

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

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

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