缓存名称服务器通常会缓存否定的 DNS 响应 SERVFAIL

发布于 2024-07-05 01:34:25 字数 137 浏览 4 评论 0原文

缓存名称服务器通常是否缓存否定 DNS 响应 SERVFAIL?

编辑: 为了澄清这个问题,我可以看到缓存名称服务器缓存否定响应 NXDOMAIN、NODATA。 但它不会对 SERVFAIL 响应执行此操作。 这是故意的吗?

Does a caching-nameserver usually cache the negative DNS response SERVFAIL?

EDIT:
To clarify the question, I can see the caching nameserver caching negative responses NXDOMAIN, NODATA. But it does not do this for SERVFAIL responses. Is this intentional?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

强辩 2024-07-12 01:34:25

SOA 中的超时字段之一是“负超时”。 通常设置为较短的时间,例如 30 或 60 秒。 所以,是的,但时间比“积极”反应要短。

One of the timeout fields in the SOA is a "negative timeout". It is usually set to a short time, such as 30 or 60 seconds. So, yes, but for a shorter time than a "positive" response.

江湖正好 2024-07-12 01:34:25

RFC 1034 描述了如何缓存否定响应,但没有定义返回这些缓存的机制结果发送给对等解析器。 RFC 2308 定义了这些属性。

负缓存是 DNS 规范的可选部分......

RFC 1034 describes how to cache negative responses but did not define a mechanism for returning those cache results to peer resolvers. RFC 2308 defines these attributes.

Negative caching was an optional part of the DNS Specifications...

記柔刀 2024-07-12 01:34:25

RFC2308 的第 7.1 节涵盖了 SERVFAIL:

服务器故障主要分为两类
类。 第一个是
服务器可以确定它已经
区域配置错误。 这可能
它已被列为服务器,但未配置为服务器
该区域的服务器,或者它所在的地方
已配置为服务器
区域,但无法获取区域
由于某种原因的数据。 这个可以
发生的原因要么是区域文件
不存在或包含错误,
或者因为另一台服务器
该区域应该已经可用
要么没有回应,要么无法回应
或者不愿意供应该区域。

第二类是
服务器需要从以下位置获取答案
其他地方,但无法这样做,因为
网络故障、其他服务器
不回复或返回服务器
失败错误或类似错误。

在任何一种情况下,解析器都可以缓存
服务器故障响应。 如果它
这样做它不能缓存它
超过五 (5) 分钟,并且
必须针对特定的缓存
查询元组<查询名称,类型,
类,服务器IP地址>.

所以基本上,它取决于您的名称服务器的实现。

SERVFAIL is covered by §7.1 of RFC2308:

Server failures fall into two major
classes. The first is where a
server can determine that it has been
misconfigured for a zone. This may
be where it has been listed as a server, but not configured to be a
server for the zone, or where it has
been configured to be a server for
the zone, but cannot obtain the zone
data for some reason. This can
occur either because the zone file
does not exist or contains errors,
or because another server from which
the zone should have been available
either did not respond or was unable
or unwilling to supply the zone.

The second class is where the
server needs to obtain an answer from
elsewhere, but is unable to do so, due
to network failures, other servers
that don't reply, or return server
failure errors, or similar.

In either case a resolver MAY cache
a server failure response. If it
does so it MUST NOT cache it for
longer than five (5) minutes, and it
MUST be cached against the specific
query tuple <query name, type,
class, server IP address>.

So basically, it's dependent on the implementation of your name server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文