Secondary DNS Explained: How Backup Nameservers Improve Resilience
Secondary DNS adds authoritative nameservers that obtain a copy of a DNS zone from its primary source. If one provider, network, or server becomes unavailable, resolvers can still query another authoritative server. That makes Secondary DNS a useful resilience layer, but only when zone transfers, delegation, and monitoring are configured correctly.
How Primary and Secondary DNS Work Together
The primary server is where DNS records are created and changed. A secondary server holds a read-only copy and receives updates through DNS zone transfers. A full transfer, called AXFR, sends the complete zone. An incremental transfer, called IXFR, can send only the changes when both servers support it.
The secondary server is still authoritative for the zone. To a recursive resolver, the listed authoritative nameservers are peers; the terms primary and secondary describe how each server obtains its data. Our introduction to how DNS finds a website explains where authoritative servers appear in the lookup process.
Why a Separate Secondary Provider Helps
Running several nameservers inside the same data centre or provider can leave them exposed to a shared routing failure, power problem, configuration mistake, or denial-of-service incident. A secondary service on independent infrastructure reduces the chance that one event makes every authoritative server unreachable.
Independence matters more than the number of hostnames in the NS set. Two servers on the same network may offer less resilience than a smaller, carefully separated design. Geographic and network diversity can also improve access for resolvers in different regions, although the exact result depends on routing and the providers involved.
Configure Zone Transfers Safely
The primary server must allow transfers to the authorised secondary addresses. Restrict AXFR and IXFR rather than allowing the entire Internet to request a copy of the zone. Where supported, use TSIG to authenticate transfer messages and protect against unauthorised updates or impersonation.
Add the secondary nameservers to the zone’s NS records and to the parent delegation through the domain registrar. Both sets should agree. The ClouDNS Secondary DNS documentation provides a concrete example of creating a read-only secondary zone that receives records from a master server.
Do not confuse a secondary zone with a historical backup. Incorrect changes on the primary can be transferred to every secondary. Keep separate versioned backups or configuration history so an earlier known-good zone can be recovered after accidental deletion or a bad deployment.
Monitor Freshness, Not Just Availability
A secondary can continue answering queries while serving outdated records. Monitor the zone serial, transfer status, and last successful update, not merely whether port 53 responds. After changing an important record, query each authoritative nameserver directly and compare its answer and serial number.
Plan what happens when the primary remains unavailable for longer than the zone’s expiry timer. Also test transfers after firewall changes, migrations, or changes to the primary server’s address. Secondary DNS complements techniques such as Anycast DNS, but the two solve different infrastructure problems.
For operational guidance on server diversity, placement, reachability, and the number of authoritative servers, see RFC 2182: Selection and Operation of Secondary DNS Servers. A reliable setup combines independent infrastructure, restricted transfers, correct delegation, and continuous checks that every server is both reachable and current.