DNS failover

Associate health checks with primary and backup endpoints. Observe when new answers switch and how long previously cached records remain in use.

Selecting a healthy endpoint
Primary address
192.0.2.10 · unavailable
Backup address
192.0.2.20 · healthy
New DNS answer
192.0.2.20

Withdraw an unhealthy endpoint from new answers

Health checks probe endpoints at configured intervals. When a target becomes unhealthy, compare fresh authoritative answers with responses still held by recursive resolvers.

Health-aware records

Non-responsive infrastructure is taken out of the answer set.

One-second minimum TTL

Some existing contracts allow a one-second TTL. A resolver can continue using an earlier answer until its cache entry expires.

DDoS-protected authority

Failover still works if the DNS layer itself is under volumetric attack.

Configuration

Cloud DNS overview
  1. List the endpoints that can take traffic

    Primary and standby application or origin addresses.

  2. Attach health checks

    Monitor each endpoint and exclude it when the check fails.

  3. Set a TTL that matches the RTO

    Use a low TTL on records that must move quickly.

  4. Rehearse a failover

    Fail a check in staging and confirm resolvers stop receiving that answer.

Operational outcomes

  • New answers can exclude an unhealthy endpoint
  • Per-record TTLs let operators plan the caching window
  • Standby capacity is only used when needed
  • Delegation can be checked independently of application health

Frequently asked questions

Is this the same as BGP failover?

No. DNS failover changes the record resolvers receive. BGP failover changes how an address is announced. Many architectures use both.

What if a resolver ignores low TTLs?

Some resolvers enforce a minimum TTL. Check when new queries switch to the backup and monitor requests that still reach the previous endpoint.

Can I fail over a whole region?

Yes. Combine health checks with GeoDNS or weighted records so a region can be taken out of the eligible set.

Does Cloud CDN failover replace this?

CDN origin groups protect delivery. Cloud DNS failover protects the hostname that clients resolve before they reach a CDN or origin.