Skip to main content

High DNS TTL on Failover Records Stalls DR Cutover

High severityDNS / Route 53 About 20 minutes to fix

Overview

A failover CNAME or A record carries the zone's default TTL of an hour or more, so when disaster recovery routing flips at the authoritative nameserver, cached answers on recursive resolvers, container stub resolvers, and ISP infrastructure keep pointing clients at the dead primary for the full TTL window, regardless of how fast the health check reacts.

At a glance

Symptom
Primary site fails and failover routing updates the authoritative answer while resolvers still hold the long-TTL cached record.
Likely cause
Failover CNAME/A records inherit the zone's default TTL of 3600s or higher instead of a dedicated low-TTL failover profile.
Impact
Clients and application connection pools keep resolving to the dead primary for up to the full TTL duration, turning a minutes-long RTO into a multi-hour outage.
Verification signal
Re-run the detection test and a controlled negative-path test.
Safe correction
Cap TTL at 60 seconds on all failover-participating records and validate propagation across independent resolvers before relying on DNS-based cutover.
Rollback or recovery
Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

The Trap

Failover-critical A and CNAME records ship with a TTL inherited from the zone’s steady-state defaults, typically 3600 seconds or higher, with no separate low-TTL profile for records that participate in disaster recovery cutover.

The Default State

Most managed DNS platforms — Route 53, Azure DNS, Cloudflare — apply a default TTL of 300 to 3600 seconds when a hosted zone is created, and operations teams routinely raise this further, to 43200 or 86400 seconds, on records they consider “stable” because the target rarely changes.

Failover CNAMEs pointing at a load balancer, a Traffic Manager profile, or an active-passive VIP get folded into this same policy. Nobody distinguishes between a marketing subdomain that changes once a year and a database endpoint that must repoint within the RTO window during an outage.

The Blast Radius

When the primary site fails and the failover routing policy flips the answer, the new record is correct at the authoritative nameserver within seconds. Every recursive resolver that already holds the old answer keeps serving it until the cached TTL expires — up to 24 hours if that was the configured value.

Worse, some resolvers, particularly ISP and enterprise resolvers, are configured with a minimum TTL floor that overrides low TTLs published by the authoritative server, and application runtimes such as the JVM can cache lookups according to their own settings rather than the record’s TTL, adding further drift.

Client connection pools keep retrying a dead IP, DNS checks run against the authoritative server already show the new answer, so the failover looks complete, and the incident bridge spends hours chasing an application fault that is actually a caching artefact.

An RTO of five minutes documented in the DR runbook becomes a multi-hour outage purely because nobody touched the TTL before the record was declared failover-capable.

The Lead Mechanic Fix

Set a hard ceiling of 60 seconds on any record participating in a failover or health-check-based routing policy, enforced separately from the zone’s general TTL policy — for Route 53, this means setting the TTL on the weighted or failover record sets explicitly, not the apex NS/SOA (alias records cannot take a TTL of their own; Route 53 uses the target’s).

Stage the change at least one TTL cycle before any planned DR test: aws route53 change-resource-record-sets --hosted-zone-id ZXXXXX --change-batch '{"Changes":[{"Action":"UPSERT","ResourceRecordSet":{"Name":"app.example.com","Type":"CNAME","TTL":60,"ResourceRecords":[{"Value":"failover-target.example.com"}]}}]}'. For a record that uses a failover routing policy, the UPSERT must also carry its existing SetIdentifier, Failover and HealthCheckId values, or Route 53 rejects the change.

Verify propagation with dig +nocmd app.example.com CNAME +noall +answer @8.8.8.8 against at least three independent resolver populations, and confirm no floor is being applied above the configured value.

For any RTO under 60 seconds, do not rely on DNS TTL at all — front the failover with an anycast IP or a load balancer that reassigns backend targets without a resolver round-trip.

3

Apply the safer control

Before you change production

Confirm the affected scope, export the current configuration, and test the replacement control in a non-production environment first.

Fix commands and configuration

aws route53 change-resource-record-sets --hosted-zone-id ZXXXXX --change-batch '{"Changes":[{"Action":"UPSERT","ResourceRecordSet":{"Name":"app.example.com","Type":"CNAME","TTL":60,"ResourceRecords":[{"Value":"failover-target.example.com"}]}}]}'
SetIdentifier
Failover
4

Verify, roll back or escalate

Verify

Re-run the detection test and a controlled negative-path test. Confirm the unsafe behaviour is blocked while approved traffic still succeeds.

Rollback

Restore the exported configuration if the new control blocks required production traffic, then narrow the policy before redeployment.

Escalate

Escalate when the blast radius is uncertain, the control cannot be tested safely, or remediation requires an outage or security exception.

The KBY Brief

Fixed? Get the next one before it hits you: The KBY Brief

Practical fixes for the systems you run, by email about twice a week. Unsubscribe at any time.

About this page

Credited to

Dates

Published

Last updated

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Was this useful?

Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.

After remediation

Further reading stays below the corrective workflow and is selected by platform, category and shared technical keywords.

More from KBY that goes with this config trap.

Discover more

Connected KBY resources