IXFR
acronymKept in this browser · My desk
Stands for: Incremental Transfer (incremental zone transfer)
IXFR, "Incremental Transfer" in RFC 9499, is the DNS query type 251 with which a secondary sends the SOA of the zone version it holds and receives only the records deleted and added since then, or the whole zone if the server has no such history.
IXFR (RFC 1995, 1996) saves a Domain Name System (DNS) secondary from copying a whole zone to learn of one changed record. The query carries the secondary's SOA (start of authority) in its authority section; the answer opens with the current SOA and, when it is incremental, a second SOA, the old one, followed by deletions, the new SOA and additions. A server without history falls back to a full AXFR, and one whose client is current answers with a single SOA.
What it is. RFC (Request for Comments) 1995, by Masataka Ohta of the Tokyo Institute of Technology, August 1996, defines the incremental zone transfer because AXFR (the full, authoritative zone transfer) copies an entire zone even when one record changed. The query type is 251, and the version is named by the zone's SOA (start of authority) record; "The IXFR query packet format is the same as that of a normal DNS query, but with the query type being IXFR and the authority section containing the SOA record of client's version of the zone" (section 3). RFC 9499 expands the acronym as "Incremental Transfer". RFC 9103 (2021) updates RFC 1995; the RFC Editor's record keeps RFC 1995 at Proposed Standard, updating RFC 1035, with RFC 9103 as its only update.
The three answers. If the client is up to date, or a reply over UDP (User Datagram Protocol) would not fit, the server answers with "a single SOA record of the server's current version". If it cannot produce the differences, it sends the whole zone as an AXFR would, "except the query type is IXFR". Otherwise it sends difference sequences: "The list of difference sequences is preceded and followed by a copy of the server's current version of the SOA", and in each sequence "The first RR of the deleted RRs is the older SOA RR and the first RR of the added RRs is the newer SOA RR" (section 4). A changed record is a deletion followed by an addition, sequences run oldest first, and the client applies them only when all have arrived. A parser therefore tells the shapes apart by the second record: an SOA there means incremental.
The SOA sequence, worked. Section 7 of RFC 1995 gives a zone, JAIN.AD.JP, in three versions. At serial 1 it holds NEZU.JAIN.AD.JP at 133.69.136.5; serial 2 removes NEZU and adds JAIN-BB.JAIN.AD.JP with 133.69.136.4 and 192.41.197.2; serial 3 changes 133.69.136.4 to 133.69.136.3. A client at serial 1 sends a query whose authority section holds "JAIN.AD.JP. IN SOA serial=1". The incremental answer, in order, is: SOA serial 3 (the current version, opening the reply); SOA serial 1, then NEZU A 133.69.136.5 (deleted); SOA serial 2, then JAIN-BB A 133.69.136.4 and A 192.41.197.2 (added); SOA serial 2, then JAIN-BB A 133.69.136.4 (deleted); SOA serial 3, then JAIN-BB A 133.69.136.3 (added); and SOA serial 3 again, closing it. Each version step is therefore old SOA, deletions, new SOA, additions. The same query could be answered as a full transfer (SOA 3, the four records, SOA 3) or in condensed form, a single step from 1 to 3, and the client could not tell the condensed answer from an uncondensed one.
History and condensation. A server may discard old versions at any time and should do so when an IXFR answer would be longer than an AXFR (section 5); it may also condense several versions into one sequence, and "Clients can't detect from the response whether the server has condensed the reply or not" (section 6). A client that asks for a version the server no longer has gets a full transfer instead of an error. Dynamic updates (RFC 2136) are the natural source of increments: each update changes the serial, and the next IXFR carries exactly the records it touched.
On the wire. Over TCP the query for example.com from a client at serial 2026112301 is 104 octets: the length 00 66 (102), an identifier, flags 00 00, counts 00 01, 00 00, 00 01, 00 00, the question with type 00 fb (251), then the client's SOA in the authority section with the serial written 78 c4 05 2d. Serials are compared with RFC 1982 arithmetic, so "newer" means ahead by less than half of the 32-bit space.
Transport then and now. RFC 1995 told clients to try UDP first and switch to TCP (Transmission Control Protocol) when the answer did not fit. RFC 9103 recorded in 2021 that BIND and NSD "do IXFR using TCP by default in their latest releases", asked that AXFR and IXFR to the same primary share one connection, and said that after a failed IXFR the client should request the AXFR on the connection already open. Over XoT the same rules apply inside TLS (Transport Layer Security), with padding allowed to hide the size of each change.
In the servers. Keeping history is a choice and has limits. NSD stores IXFR versions only when store-ixfr is set (the default is no), keeps at most 5 versions (ixfr-number) and 1,048,576 bytes (ixfr-size) by default, can compute them from zone file changes with create-ixfr, falls back to AXFR when the primary lacks IXFR unless allow-axfr-fallback is no, and on request-xfr can be told to ask only AXFR, or to send IXFR over UDP, which its manual says needs TSIG (Secret Key Transaction Authentication for DNS) to avoid "Kaminsky-style attacks". BIND keeps changes in a journal whose size max-journal-size bounds, removing the oldest transactions near the limit (at most 2 gigabytes). Knot DNS answers IXFR by default (provide-ixfr on) and can turn zone file edits into differences with zonefile-load: difference. PowerDNS fetches IXFR when a zone's IXFR metadata is 1 but, its documentation says, "cannot serve IXFR updates", and warns that an IXFR does not pick up a switch to DNSSEC (the DNS Security Extensions) or a change of NSEC3 (hashed denial of existence) mode.
Tools. BIND's dig asks for an increment with the type "ixfr=N", where N is the client's serial; Knot DNS's kdig accepts "IXFR=serial". In a capture, an IXFR query is the one whose header counts read 1, 0, 1, 0: one question and one authority record.
How it differs. IXFR is a query type, 251, and only moves differences between two serials; AXFR moves the whole zone; NOTIFY tells the secondary that it is worth asking; dynamic update produces the differences on the primary. An IXFR is never an error when history is missing: the server falls back to a full copy, so a client must parse the second record of the answer to know which shape it got.
Also known as: incremental zone transfer, incremental transfer, qtype 251
Sources
- IETF, RFC 1995, Incremental Zone Transfer in DNS (M. Ohta), August 1996 (read 2026-11-23): QTYPE 251, the client SOA in the authority section, difference sequences, purging, condensation, the single-SOA reply
- IETF, RFC 9499 (BCP 219), DNS Terminology (P. Hoffman, K. Fujiwara), March 2024 (read 2026-11-23): resolver, stub, iterative and recursive modes, full-service, forwarder, policy-implementing, open and validating resolvers; zone transfer, AXFR, IXFR; DoQ; anycast and instance
- IETF, RFC 9103, DNS Zone Transfer over TLS (W. Toorop, S. Dickinson, S. Sahib, P. Aras, A. Mankin), August 2021 (read 2026-11-23): cleartext transfers leak zones, XoT on TLS 1.3 and port 853, connection reuse, IXFR over TCP by default in BIND and NSD, NOTIFY leakage, padding, ZONEMD
- IETF, RFC 2136, Dynamic Updates in the Domain Name System (DNS UPDATE) (P. Vixie, ed., S. Thomson, Y. Rekhter, J. Bound), April 1997 (read 2026-11-23): opcode 5, the four sections, the prerequisite and update meta-values, atomicity, serial increment, security warning
- ISC, BIND 9 manual pages, 9.21.29-dev documentation (read 2026-11-23): dig AXFR and ixfr=N, +nsid, -k and -y; host -l; nslookup ls not implemented; nsupdate prereq and update commands
- CZ.NIC, kdig, Knot DNS 3.6.2 documentation (read 2026-11-23): +quic, +nsid, IXFR=serial
- RFC Editor, RFC 1995 record, JSON metadata (read 2026-11-23): Proposed Standard, August 1996; updates RFC 1035; updated by RFC 9103; copy taken at 18:00 by the DNS research
- IETF, RFC 1982, Serial Number Arithmetic (R. Elz, R. Bush), August 1996, updates RFC 1034 and 1035 (read 2026-11-23): SERIAL_BITS 32 for the SOA serial; an addition may not exceed 2^(SERIAL_BITS - 1) - 1; the comparison of two values half the space apart is undefined
- NLnet Labs, nsd.conf(5), NSD documentation, latest (read 2026-11-23): provide-xfr, request-xfr (AXFR and UDP flags, tls-auth for XFR-over-TLS on port 853), allow-notify and notify with a key, NOKEY or BLOCKED; notify-retry; allow-axfr-fallback default yes; store-ixfr default no, ixfr-number 5, ixfr-size 1048576, create-ixfr; identity for CH TXT ID.SERVER; nsid as hex or with the ascii_ prefix
- ISC, BIND 9 Administrator Reference Manual, Configuration Reference, allow-transfer and max-journal-size, 9.21.29-dev (read 2026-11-23): allow-transfer default none, outgoing transfers disabled; transfers only over the TCP and TLS transports; max-journal-size removes the oldest transactions near the limit, at most 2 gigabytes, small values rounded up to 4096 bytes; copy taken at 18:01 by the DNS research
- CZ.NIC, Knot DNS configuration reference, latest documentation (read 2026-11-23): nsid default the FQDN hostname at start; acl actions query, notify, transfer and update; notify-delay default 0; provide-ixfr default on; zonefile-load difference; quic default off and quic-port 853
- PowerDNS, Authoritative Server, Modes of operation (read 2026-11-23): NOTIFY messages carry TSIG since 4.0.0; a refresh triggered by a NOTIFY checks the NOTIFY's source; IXFR retrieval when the zone's IXFR metadata is 1; PowerDNS cannot serve IXFR; IXFR does not set PRESIGNED or pick up an NSEC3 change