XiaTools

Why Secondary DNS Providers Are Critical for High Availability

Updated 09 Oct 2026

Relying on a single Domain Name System provider leaves your entire infrastructure vulnerable to catastrophic outages, making a robust secondary DNS strategy essential for true high availability. When your primary authoritative name server goes down due to a distributed denial-of-service attack, configuration error, or hardware failure, visitors cannot resolve your domain name to an IP address, rendering your website and services completely unreachable. Implementing a secondary DNS provider creates an identical, synchronized copy of your DNS zone data that automatically handles traffic if your primary provider fails.

To check how your current name servers and records are globally distributed, you can use the DNS Lookup tool to instantly query your domain across multiple root and recursive servers worldwide. This tool helps you verify zone consistency and spot synchronization delays between your primary and secondary providers before an outage occurs.

How Secondary DNS and Zone Transfers Work

Secondary DNS operates on a master-slave model where your primary name server holds the authoritative zone file, and the secondary provider pulls updates from it. Instead of manually copying records every time you make a change, the two systems communicate using DNS zone transfers.

There are two primary types of zone transfers:

  • AXFR (Full Zone Transfer): Downloads the entire DNS zone file. This is typically used during the initial setup or when a major synchronization reset occurs.
  • IXFR (Incremental Zone Transfer): Downloads only the specific records that have changed since the last successful serial number update. This minimizes bandwidth and speeds up propagation.

The Role of the SOA Serial Number

The Start of Authority (SOA) record is the heartbeat of secondary DNS synchronization. Inside the SOA record, you will find a serial number, which usually follows a date-based format such as YYYYMMDDNN. Every time you add, modify, or delete a DNS record on your primary server, you must increment this serial number.

When your secondary provider periodically checks your primary server, it compares the primary's SOA serial number against its own local copy. If the primary serial number is higher, the secondary initiates an IXFR request to pull the updates.

example.com. IN SOA ns1.example.com. admin.example.com. (
                2023102501 ; Serial (YYYYMMDDNN)
                7200       ; Refresh (2 hours)
                3600       ; Retry (1 hour)
                1209600    ; Expire (2 weeks)
                300 )      ; Minimum TTL (5 minutes)

Designing a High Availability DNS Architecture

A resilient DNS architecture requires more than just signing up for a second provider; it requires careful planning of network paths, server diversity, and Anycast routing.

Combining Different Providers for True Redundancy

Many organizations make the mistake of purchasing a secondary DNS service from the exact same cloud provider or datacenter network as their primary. If that cloud provider experiences a core routing or regional infrastructure failure, both your primary and secondary name servers will go offline simultaneously.

To achieve true high availability, select an independent secondary DNS provider that operates on a completely separate autonomous system (AS) and network backbone. Ideally, your primary and secondary providers should both utilize Anycast routing to distribute query loads across dozens of global points of presence (PoPs).

Configuring Primary and Secondary DNS Providers

While specific menu paths vary by vendor, configuring a multi-vendor secondary DNS setup generally follows these steps:

  1. Log into your primary DNS provider's management console and locate your domain zone settings.
  2. Enable zone transfers and explicitly add the IP addresses of your secondary provider's servers to the Allowed Transfer List (often labeled as ACL or AXFR IPs).
  3. Log into your secondary DNS provider's dashboard and navigate to the secondary zones or slave zones section.
  4. Add your domain name (e.g., example.com) and provide the public IP address of your primary master name server (e.g., 192.0.2.1 or 2001:db8::1).
  5. Save the configuration and trigger an initial manual zone transfer to confirm that records populate correctly.

Verifying and Testing Your Secondary DNS Setup

Once configured, you must verify that your zone data is identical across all providers and that recursive resolvers can reach both sets of name servers.

Checking Name Server Responses with Dig

Use the dig command-line utility to query each name server directly and confirm that they return matching records and identical SOA serial numbers.

# Query the primary name server
dig @192.0.2.1 example.com SOA +noall +answer

# Query the secondary name server
dig @198.51.100.2 example.com SOA +noall +answer

Both commands should output the exact same serial number. If they do not match, check your primary server's firewall rules to ensure TCP and UDP port 53 are open for the secondary provider's IP addresses.

Testing Failover Behavior

You can simulate a primary name server outage by temporarily blocking traffic to your primary nameservers or pausing the service in your primary dashboard. Use nslookup or dig from an external network to verify that recursive resolvers successfully query your secondary name servers and continue to resolve your domain correctly.

# PowerShell lookup forcing a specific name server
Resolve-DnsName -Name example.com -Server 198.51.100.2

Comparison: Single Provider vs. Secondary DNS High Availability

Feature Single DNS Provider Multi-Provider Secondary DNS
Uptime SLA Typically 99.9% to 99.99% Combined SLA approaching 100%
DDoS Resilience Dependent on one network's capacity Distributed across multiple networks
Outage Impact Total service blackout if provider fails Seamless traffic failover to secondary
Maintenance Risk Propagation errors affect resolution Zero-downtime updates via automated IXFR
Configuration Complexity Low Medium (requires ACL and serial management)

Common Mistakes and How to Fix Them

Even experienced engineers occasionally misconfigure secondary DNS setups. Watch out for these frequent pitfalls:

  • Forgetting to Increment the SOA Serial: If you update a record on your primary server but forget to increment the serial number, the secondary server will assume its data is already up to date and will not pull the changes.
  • Blocking TCP Port 53: Zone transfers (AXFR and IXFR) frequently use TCP port 53 rather than UDP, especially when zone payloads exceed standard packet sizes. Ensure your firewalls permit incoming and outgoing TCP connections on port 53 between your master and slave servers.
  • Missing Glue Records at the Registrar: If your domain uses name servers across different providers, ensure that your domain registrar has accurate glue records (IP addresses) for all designated name servers to prevent circular dependency resolution failures.
  • Ignoring TSIG Authentication: Unauthenticated zone transfers can expose your internal network layout or leave your zone vulnerable to malicious cache poisoning. Always configure Transaction Signature (TSIG) keys between your primary and secondary providers to cryptographically secure zone transfer communication.

High Availability Checklist

  • Selected an independent secondary DNS provider with a separate network backbone.
  • Enabled AXFR/IXFR zone transfers on the primary master server.
  • Whitelisted secondary provider IP addresses in the primary firewall and ACL.
  • Configured TSIG keys for secure zone transfer authentication.
  • Verified that SOA serial numbers increment correctly on every zone change.
  • Tested record resolution across all primary and secondary name servers using command-line tools.

Frequently asked questions

What is the main difference between primary and secondary DNS?

The primary DNS server is where you make all your zone file changes and store the master copy of your records. The secondary DNS server maintains a synchronized read-only copy of that zone data, pulling updates automatically from the primary via zone transfers to serve DNS queries.

How often do secondary DNS servers sync with the primary server?

Secondary servers check the primary server's SOA serial number based on the Refresh timer defined in the SOA record, which is commonly set between 1 and 3 hours. However, if you configure NOTIFY on your primary server, it will instantly alert your secondary providers to initiate an immediate incremental transfer whenever a record changes.

Do I need to list both primary and secondary name servers at my domain registrar?

Yes, you must list all authoritative name servers—both primary and secondary—in your domain registrar's name server (NS) delegation settings. This ensures that global recursive resolvers know which servers to query and can automatically fail over if one set stops responding.

Why is TCP port 53 required for secondary DNS?

While standard DNS queries use UDP port 53 for speed, zone transfers (AXFR) often generate data payloads larger than the standard 512-byte UDP packet limit. When payloads exceed this limit, servers fall back to TCP port 53 to ensure the entire zone file transfers reliably without packet truncation.

Can I have more than one secondary DNS provider?

Yes, you can configure multiple secondary DNS providers to pull from your primary master server, creating a multi-vendor daisy chain or star topology. This strategy further increases high availability by distributing your DNS traffic across three or more independent global networks.

Related articles

Free tools