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

DNS forwarder vs DNS resolver

· 52CE 我爱测

I'm having a little bit confused between DNS forwarder and DNS resolver. To me, they are somehow similar to each other. Upon receiving a query, both will check cache to see if it can answer right away to the client before forward…

问题原文

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

I'm having a little bit confused between DNS forwarder and DNS resolver.

To me, they are somehow similar to each other. Upon receiving a query, both will check cache to see if it can answer right away to the client before forwarding query to other DNS server.

For example, is my SOHO router considered to be a forwarder or resolver? If it is a forwarder, then is there anyway to know what DNS resolver my router use to forward queries?

Hope for best explain as I'm not really a tech savvy.

Thanks!

已采纳解答

原帖链接 · Stuart Maxwell · CC BY-SA 4.0

A DNS forwarder will forward requests to another DNS resolver, and if it gets a result it will store this in a cache so that subsequent requests can use the cached result up until the TTL (time-to-live) expires. A DNS resolver stores a database of records that it is authorised to resolve and these records can be edited by an administrator. Most DNS resolvers will also act as forwarders so that if they can't resolve a record they will forward on to another DNS server for resolution. However, you may want a DNS resolver to only resolve names it is authoritative for, in which case you can configure it to not forward on to another DNS resolver.

A home router typically acts as a DNS forwarder, storing a cache of results for as long as they are valid (based on the TTL). But some home routers also have the ability to keep a database of local records - e.g. it may keep a record of your computer name mapped to the local IP address - to enable local name resolution. In this case, the router is acting as a resolver and a forwarder.

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

资料来源与适用范围

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

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

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