DNS failover

term

networkingcloud

Kept 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

← Back to D Back to the glossary