DNS failover
termKept in this browser · My desk
Moving clients from a failed site or endpoint to a healthy one by changing, from health checks, the answers a DNS service returns, so that clients reach the new address the next time they resolve the name.
Its speed is detection, plus the time to live of the old answer in every cache, plus a tail of resolvers that ignore the time to live. Microsoft's documented Traffic Manager timeline, with a 30-second probe interval, three tolerated failures and a 30-second TTL, takes an endpoint out of the answers 100 to 130 seconds after a failure; measurements published by Pang and others in 2004 found clients and resolvers still using answers more than two hours after they expired.
Rules. RFC 1035 lets a record be cached for its TTL, RFC 2308 caches negative answers for the smaller of the SOA record's MINIMUM field and its own TTL, and RFC 8767 lets resolvers serve expired answers when the authoritative servers cannot be reached. Measurements. Moura and others (IMC 2019) found most resolvers trusting their cache up to a one-hour TTL, about 2.25% of vantage points still using an old resolver after both records should have expired, and minimum caching times of tens of seconds in many resolvers; they suggest 5 or 15 minutes for services behind CDNs or load balancers. All unhealthy. Route 53 treats every record as healthy when all are unhealthy, and Traffic Manager answers with all degraded endpoints, so a misconfigured check can look like a working failover. Alternative. Anycast replaces the TTL with routing convergence, which Labovitz and others measured at an average of three minutes for inter-domain path failovers in 1998 to 2000.
Also known as: DNS-based failover, DNS-based site failover, failover por DNS
Sources
- Microsoft Learn, Traffic Manager endpoint monitoring, 29 December 2025 (read 2026-11-16): probing interval 30 or 10 seconds, timeout 10, 3 tolerated failures, the documented timeline with a 30-second TTL, best effort when all endpoints are degraded
- Amazon Web Services, Route 53 Developer Guide, How Amazon Route 53 averts failover problems (read 2026-11-16): when all records are unhealthy, all are considered healthy; partitions, with São Paulo as the example
- Jeffrey Pang, Aditya Akella, Anees Shaikh, Balachander Krishnamurthy and Srinivasan Seshan, On the Responsiveness of DNS-based Network Control, IMC 2004 (read 2026-11-16): up to 47% of clients and local DNS servers together, and 14% of local DNS servers, violate TTLs, those that do by more than 2 hours
- Giovane C. M. Moura, John Heidemann, Ricardo de O. Schmidt and Wes Hardaker, Cache Me If You Can: Effects of DNS Time-to-Live, IMC 2019 (read 2026-11-16): most resolvers trust their cache up to a one-hour TTL, about 2.25% of vantage points keep an old resolver, minimum caching times of tens of seconds, short TTLs of 5 or 15 minutes for CDNs and load balancers
- 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 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
- Craig Labovitz, Abha Ahuja, Abhijit Bose and Farnam Jahanian, Delayed Internet Routing Convergence, SIGCOMM 2000 (read 2026-11-16): inter-domain path failovers averaged three minutes, with oscillations lasting up to fifteen minutes