serve-stale
termKept in this browser · My desk
A resolver behaviour, standardized in RFC 8767, of answering from expired cache data when the authoritative servers for a name cannot be reached.
It keeps names resolving through an outage of their authoritative servers, and it also keeps clients on the last answer they were given, healthy or not. RFC 8767 sets the TTL of a stale answer to a value greater than 0, recommending 30 seconds, and suggests keeping expired records for between 1 and 3 days.
Timers. RFC 8767 (March 2020, Proposed Standard) adds a client response timer, after which a resolver still waiting on the authoritative servers may answer from stale data, with 1.8 seconds recommended as just under a common client timeout of 2 seconds, and a maximum stale timer that caps how long expired records are kept. TTL cap. The same RFC amends the definition of the TTL to recommend a cap of 604,800 seconds, 7 days, instead of the 68 years that RFC 2181 allows. Interaction with failover. A global load balancer whose own name servers fail leaves resolvers that serve stale sending clients to whatever site the last answer named. Negative answers. RFC 2308 caches the absence of a name for the smaller of the SOA MINIMUM field and the SOA TTL, so a global load balancer that answers NXDOMAIN during a failure has that answer remembered too.
Also known as: serve stale, serving stale data, stale answers, respostas vencidas
Sources
- RFC 8767, Serving Stale Data to Improve DNS Resiliency, March 2020, Proposed Standard, sections 4 to 6 (read 2026-11-16): stale answers with a TTL above 0, 30 seconds recommended; a client response timer of 1.8 seconds; a maximum stale timer of 1 to 3 days; a recommended TTL cap of 604,800 seconds
- RFC 2308, Negative Caching of DNS Queries (DNS NCACHE), March 1998, section 5 (read 2026-11-16): the TTL of a negative answer is the minimum of the SOA MINIMUM field and the TTL of the SOA itself
- RFC 1035, Domain Names: Implementation and Specification, November 1987, Internet Standard, section 3.2.1 (read 2026-11-16): the TTL as the time a record may be cached before the source is consulted again