DNS NOTIFY

term

networking

Kept in this browser · My desk

DNS NOTIFY, opcode 4 of RFC 1996, is the message a primary name server sends to its secondaries to say that a zone has changed, so that they check its SOA serial at once instead of waiting for their refresh timer.

NOTIFY turns zone replication in the Domain Name System (DNS) from polling into push: when the zone's SOA (start of authority) changes, the primary sends each secondary a short message with opcode 4, the AA flag and the zone's name; the secondary acknowledges with the same message and QR set, then asks for the SOA and, if the serial is newer, transfers the zone. It carries no data the secondary may trust, which is why it is accepted only from known primaries and is best signed with TSIG.

What it is. RFC (Request for Comments) 1996, "A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY)", by Paul Vixie, August 1996, adds "an interrupt as opposed to poll model" to zone replication with a new operation code, NOTIFY, value 4, still listed by IANA (the Internet Assigned Numbers Authority) as Notify. "The only defined NOTIFY event at this time is that the SOA RR has changed." The request has a new query ID (identifier), opcode 4, RCODE (response code) NOERROR, the AA (Authoritative Answer) flag, one question with the zone's name and class and type SOA; the response is "identical to the NOTIFY request, except that the QR bit is also set", with the same ID (section 4). In hex the flags word reads 24 00 in the request and a4 00 in the response. The RFC Editor's record keeps RFC 1996 at Proposed Standard, updating RFC 1035, with no later update.

The message, octet by octet. A NOTIFY for example.com is 29 octets over UDP: a 16-bit identifier (4b 1d in a worked example), the flags 24 00, the counts 00 01 00 00 00 00 00 00 (one question), the name 07 65 78 61 6d 70 6c 65 03 63 6f 6d 00, the type 00 06 (SOA, start of authority) and the class 00 01. The flags word 0x2400 decodes as QR 0 (a request), the four opcode bits 0100 (4), AA (Authoritative Answer) 1, and every other bit, RCODE (response code) included, at zero. The acknowledgement changes only QR, 0x8000 plus 0x2400, hence a4 00, and keeps the identifier, which is how the primary matches it to the request it is retransmitting.

Who is notified, and how often. The Notify Set is by default "all servers named in the NS RRset, except for any server also named in the SOA MNAME", and implementations let administrators add others (BIND's also-notify). NOTIFY uses UDP (User Datagram Protocol) unless TCP (Transmission Control Protocol) is needed; over UDP the primary resends until it gets a matching response, with "a 60 second interval" and "a maximum of 5 retransmissions" as reasonable defaults, and it may wait a random delay first so that secondaries do not all transfer at once (sections 3.6 and 4.3). A secondary that does not implement NOTIFY answers NOTIMP.

What the secondary does. It "should behave as though the zone given in the QNAME had reached its REFRESH interval": it queries the SOA and transfers by AXFR or IXFR (full or incremental zone transfer) if the serial is newer. A NOTIFY may carry the new SOA in its answer section, but only as "an unsecure hint"; "In no case shall the answer section of a NOTIFY request be used to update a slave's local data", and a NOTIFY from a host that is not a known master must be ignored and logged (sections 3.7, 3.8 and 3.10). RFC 1996 asked secondaries to query the master that sent the NOTIFY; BIND's manual documents a different choice: "named does not first query the sender of the notify" but continues with the next server in its list.

Security and privacy. An unsigned NOTIFY is easy to forge. The advisory of ISC (Internet Systems Consortium) for CVE-2017-3142 (Common Vulnerabilities and Exposures) (June 2017) notes that a bogus NOTIFY "cannot be used to force a zone transfer from a malicious server, but could trigger a high rate of zone refresh cycles", and that this BIND flaw let such NOTIFYs pass TSIG (Secret Key Transaction Authentication for DNS) checks. RFC 9103 adds a privacy point: "Unencrypted NOTIFY messages identify configured secondaries on the primary." Over DNS over QUIC (RFC 9250), NOTIFY is one of the two opcodes, with QUERY, considered replayable and therefore allowed in 0-RTT data.

Over QUIC, and the replay question. RFC 9250, Appendix A, explains why NOTIFY may ride in 0-RTT (zero round trip) data, which an attacker can replay: although a NOTIFY "technically changes the state of the receiving server", replaying it "has negligible impact in practice", because forged NOTIFYs have long been known and "most implementations have some form of throttling" of the SOA and transfer queries they trigger. It adds that encrypting NOTIFY brings no clear privacy gain, since RFC 9103 leaves NOTIFY and SOA queries outside the scope of encrypted zone transfers.

In the servers. BIND notifies the servers in the zone's NS (name server) records other than the primary, plus any also-notify address, which can carry a port and a TSIG (Secret Key Transaction Authentication for DNS) key; notify-delay (default 5 seconds) postpones the next round for a zone updated again too soon, and notify-rate caps all zones at 20 per second by default. NSD notifies each notify address, signed with the key named there, retrying notify-retry times, and accepts NOTIFY only from allow-notify entries, discarding unlisted or BLOCKED senders. Knot DNS sends after notify-delay (default 0) and accepts NOTIFY where an acl grants the notify action. PowerDNS adds TSIG to its NOTIFY messages since version 4.0.0 when the zone has a key, accepts them by default from 0.0.0.0/0 and ::/0 (allow-notify-from) and, as RFC 1996 asks and unlike BIND, checks freshness against the NOTIFY's source. Windows Server picks per zone among NoNotify, Notify and NotifyServers.

In practice. NIC.br's training material configures it with NSD as notify plus provide-xfr on the primary and allow-notify plus request-xfr on the secondary, each naming a TSIG key, which is the pattern RFC 1996 and the 2017 advisories point to: notify only known peers, accept only from known primaries, and sign.

Beyond zone transfers. RFC 9859, "Generalized DNS Notifications" (September 2025, J. Stenstam, P. Thomassen and J. Levine), reuses the message between child and parent zones: a child's operator sends a NOTIFY whose qtype is CDS (child DS) or CSYNC (child-to-parent synchronization), so that the parent updates the delegation's DS (Delegation Signer) or NS data "promptly (instead of on a schedule)". The parent publishes where to send it in a new record type, DSYNC (66), under the _dsync label, for example "IN DSYNC CDS NOTIFY 5359 cds-scanner.example.net."; scheme 1, NOTIFY, means an ordinary DNS message to that host and port. As in 1996, the message only nudges: the receiver still fetches and checks the data itself.

How it differs. NOTIFY moves no zone data; it is a doorbell. The data move by AXFR or IXFR after an SOA query the secondary makes itself, the zone transfer entry describes that whole cycle, and a dynamic update is the usual reason the serial changed in the first place. Without NOTIFY the cycle still works, only later, on the REFRESH timer.

Also known as: notify, notify opcode, opcode 4, also-notify

Sources

← Back to D Back to the glossary