问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
