Engineering

DNS Failover Explained: How It Works, TTL, and Its Limits

Published July 10, 2026 · Continuuly

DNS failover is an automated routing technique that redirects traffic from a failed or unreachable server to a healthy one, based on continuous health checks. It's one of the oldest and most widely used resilience mechanisms on the internet — and one of the most misunderstood, because DNS failover has real limits that no configuration can fully remove.

How DNS Failover Works

At a basic level, DNS failover replaces a static DNS answer with a dynamic one that depends on server health:

When the primary endpoint recovers and passes health checks again, the system can automatically fail back — or wait for manual confirmation, depending on policy.

Why TTL Is the Real Constraint

TTL (Time To Live) tells DNS resolvers how long to cache an answer before asking again. This is the single biggest factor in how fast DNS failover actually works — and the one most people underestimate.

If your TTL is set to 3600 seconds (one hour), a resolver that cached the old, unhealthy IP won't ask again for up to an hour, no matter how fast your health checks detect the failure. For failover-enabled records, TTLs of 30 to 300 seconds are common practice, trading a small increase in query volume for dramatically faster propagation.

TTLFailover speedQuery load
3600s (1 hour)Slow — up to 1 hour for some clientsLow
300s (5 min)ModerateModerate
30-60sFastHigher, usually negligible for modern DNS infra

Even with a low TTL, DNS failover is not instant. Some public resolvers don't strictly honor TTL and may hold answers longer, and some client-side caches (OS, browser) add their own delay. Low TTL reduces the failover window — it doesn't eliminate it.

DNS Failover vs. Load Balancing

These two get conflated constantly, but they solve different problems:

A load balancer sitting in front of your infrastructure makes per-request decisions instantly. DNS failover is coarser and slower by nature, because it depends on caching. The two aren't competitors — most resilient architectures use both, at different layers.

Active-Passive vs. Active-Active DNS Failover

Where DNS Failover Falls Short

DNS failover is a genuinely useful layer, but it has structural limits worth knowing before you rely on it as your only resilience mechanism:

This is why DNS failover is best understood as one layer in a broader resilience strategy — not a replacement for a CDN-aware control plane that can make faster, application-level routing decisions across multiple providers.

The Bottom Line

DNS failover is effective, well-understood, and available almost everywhere — but it's bounded by caching behavior that no configuration fully removes, and it has no awareness of what's happening above the DNS layer. For teams whose resilience strategy depends entirely on DNS failover, a CDN-provider-side outage can still mean a slow, TTL-bound recovery rather than a fast one.

Continuuly operates above the DNS layer, as an out-of-band control plane that detects provider degradation and reroutes traffic across CDNs — without waiting on DNS propagation. See how it works →