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

Is there a standard time duration before DNS caches are cleared?

· 52CE 我爱测

Is there a standard time duration before DNS caches are cleared, so that if a distracted operator or stuck key turns a TTL of 86400 into 864000000 you don't end up with an authoritative resource record or even entire DNS zone who…

问题原文

原帖链接 · user981178 · CC BY-SA 3.0

Is there a standard time duration before DNS caches are cleared, so that if a distracted operator or stuck key turns a TTL of 86400 into 864000000 you don't end up with an authoritative resource record or even entire DNS zone whose changes won't be recognized for 27.397 years?

And, if there is no protection against this sort of error, then what is the reasoning behind allowing TTL duration up to 68 years instead of a maximum value of perhaps one month?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 3.0

You'll be happy to know that most (if not all) DNS server software has protection against this scenario.

For example:

Microsoft DNS server has a MaxCacheTTL setting, which defaults to 86400. So regardless of any TTL setting in DNS RRs, if this is not adjusted, the DNS server will not cache anything longer than a day.

BIND also has a similar setting max-cache-ttl, which defaults to 604800 (7 days).

PowerDNS alao has the setting max-cache-ttl and defaults to 86400.

Unbound names the setting cache-max-ttl and defaults to 86400.

Since BIND is still the most popular DNS server out there, its 7 day default will affect you. If you find out this has happened, you'll probably have to wait a week before most everyone has flushed their caches.

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

资料来源与适用范围

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

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

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