A zone transfer is the DNS mechanism that replicates the contents of a DNS zone from one authoritative name server to another, so that several servers can answer for the same domain with identical data. It exists in two forms: the full transfer (AXFR) and the incremental transfer (IXFR).
Zone transfers keep secondary name servers synchronized with the primary, which provides redundancy and geographic spread for authoritative DNS. Because a transfer exposes every record in a zone, it is also a classic reconnaissance target, and modern deployments restrict and authenticate it carefully.
How a zone transfer works
A zone transfer begins when a secondary server asks the primary whether its copy is current. The decisive value is the SOA serial number, a counter in the zone’s Start of Authority record that administrators or automation increase whenever the zone changes.
- The secondary queries the primary for the SOA record when the refresh timer expires or a NOTIFY message arrives.
- If the primary’s serial is higher than the local serial, the secondary requests a transfer.
- The primary streams the records over TCP port 53, beginning and ending with the SOA record.
- The secondary validates the data, replaces or patches its copy, and starts answering with the new version.
Transfers use TCP rather than UDP because a zone can contain thousands of records, far beyond the size of a single UDP response. The behavior is defined in RFC 5936 for AXFR and RFC 1995 for IXFR, while RFC 1996 describes the NOTIFY mechanism.
The SOA timers below control how often secondaries check for changes and how long they keep serving stale data when the primary is unreachable.
| SOA field | Meaning | Common range |
|---|---|---|
| Refresh | Interval between serial checks | 1 to 24 hours |
| Retry | Wait after a failed check | 10 minutes to 2 hours |
| Expire | When a secondary stops answering | 1 to 4 weeks |
| Serial | Version number of the zone | Often YYYYMMDDnn format |
| Minimum | Negative caching TTL | 5 minutes to 1 day |
AXFR and IXFR compared
AXFR and IXFR differ in how much data they move. AXFR always sends the entire zone, while IXFR sends only the differences between two serial numbers, provided the primary has kept a journal of changes.
| Property | AXFR | IXFR |
|---|---|---|
| Data sent | Entire zone | Only changed records |
| Defining standard | RFC 5936 | RFC 1995 |
| Server requirement | Current zone only | Change journal or history |
| Bandwidth use | High for large zones | Low for small edits |
| Fallback behavior | Not applicable | Falls back to AXFR |
| Best suited to | Initial load, rare changes | Large, frequently edited zones |
When the primary cannot compute the difference, for example because its journal was truncated, it answers an IXFR request with a full zone. Large signed zones benefit most from IXFR, because DNSSEC re-signing changes many signature records at once.
NOTIFY and the speed of replication
The DNS NOTIFY message lets a primary tell its secondaries immediately that the zone has changed, instead of waiting for the refresh timer. With NOTIFY in place, replication typically completes within seconds rather than hours.
Replication speed is often confused with DNS propagation. A zone transfer only updates authoritative servers; resolvers continue to serve cached answers until the time to live of each record expires. Fast transfers therefore do not shorten the delay that end users experience after a change.
Securing zone transfers
An unrestricted zone transfer is a serious information disclosure risk, because anyone can download a complete list of host names, internal service records and mail servers. Security scanners routinely test for open AXFR on every authoritative server of a domain.
The controls below are normally layered, since IP filtering alone does not prove the identity of the requester.
| Control | What it does | Limitation |
|---|---|---|
| IP allow list | Accepts transfers only from known secondaries | Addresses can be spoofed or reused |
| TSIG | Signs messages with a shared secret key | Keys need secure distribution and rotation |
| XFR over TLS (XoT) | Encrypts the transfer, RFC 9103 | Requires support on both servers |
| DNSSEC | Signs records for resolver validation | Does not hide zone contents |
| Firewall on TCP 53 | Blocks transfer traffic from outside | Must still allow normal TCP queries |
TSIG, defined in RFC 8945, is the established way to authenticate both ends of a transfer. XoT adds confidentiality, which matters when zones contain internal names or travel across untrusted networks. Note that DNSSEC protects integrity, not secrecy: signed zones can still be enumerated through NSEC records unless NSEC3 is used.
Typical deployments and operational practice
Zone transfers appear in several architectural patterns, from a simple primary with two secondaries to a hidden primary that is never listed in the NS records and only feeds public secondaries. Server software such as BIND and many managed DNS providers support all of them.
| Pattern | Description | Main benefit |
|---|---|---|
| Primary and secondaries | One editable source, several copies | Redundancy and simple management |
| Hidden primary | Unlisted source feeds public servers | Protects the editing system |
| Multi-provider DNS | Two providers share a zone | Resilience against provider outages |
| Internal replication | Copies zones across data centers | Local answers, lower latency |
Operators should monitor serial numbers on every server and alert when a secondary lags behind. Forgetting to increment the serial after a manual edit is the most frequent cause of stale secondaries, and a secondary that cannot reach the primary beyond the expire interval stops answering entirely, which can cause outages for a whole domain.
The simple explanation
A domain usually has several servers that answer questions about its addresses, so the site keeps working if one of them fails. A zone transfer is how those servers keep the same address book. The main server holds the master copy, and the others regularly ask whether anything has changed.
If something changed, the main server sends either the whole book or just the new pages. Because that book lists every name in the domain, only trusted servers should be allowed to request it.
How it is used in practice
A regional university runs its own hidden primary for a zone with about 12,000 records, covering departments, laboratories and student services. Two public secondaries at a managed DNS provider answer all external queries, and the primary accepts transfers only from their addresses and only with a valid TSIG key.
When the network team adds a record for a new research portal, their automation raises the SOA serial and sends NOTIFY messages. Each secondary requests an IXFR of roughly a dozen records and is up to date within about five seconds. A quarterly external scan confirms that AXFR requests from unknown hosts are refused, so the internal structure of the campus network stays private while the domain remains highly available.