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

What's the difference between DNS forwarding first and forwarding only?

· 52CE 我爱测

I'm doing some research on DNS forwarding and I'm struggling with information on a few items: What's the difference between DNS forwarding first and forwarding only? Information on the internet doesn't seem that clear. If you hav…

问题原文

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

I'm doing some research on DNS forwarding and I'm struggling with information on a few items:

What's the difference between DNS forwarding first and forwarding only? Information on the internet doesn't seem that clear.

If you have multiple DNS forwarders configured on a forwarding tab of a DNS server under which conditions is the second forwarder queried?

Thank you

已采纳解答

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

A DNS server often have a set of root hints. IE the list about a dozen servers that hold the root . zone. So if it needs to resolve a DNS name without forwarding it will start at the root and query things until it finds the answer. Perhaps by asking the root servers for the names servers for .org, and the .org server for the servers that handle .example.org, and finally the .example.org servers what the results are for www.example.org.

When you have forwarding only enabled, this process is completely disabled, and all DNS requests will be forwarded on to some other server. So if you were forwarding to 8.8.8.8 that would be it. You send the request off to 8.8.8.8 and if you get a valid reply you return that, or you fail.

When you have forwarding enabled, but you have not set forwarding only, your DNS server will try to forward a request to another server and if there is a failure or a timeout then the request will fall back to resolving using the standard method starting at the root hints.

Keep in mind that a NXDOMAIN reply is not a failure. A failures is a SERVFAIL, a timeout, or something like that.

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

资料来源与适用范围

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

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

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