Guides

What is an SOA record? Every field of the DNS Start of Authority record

What is an SOA record in DNS? MNAME, RNAME, serial, refresh, retry, expire and the negative caching TTL explained, with real dig output and common mistakes.

Published ~8 min read
On this page

Short answer: an SOA (Start of Authority) record is the single record at the top of every DNS zone that names the zone's primary nameserver and the administrator's mailbox, and carries a serial number plus four timers. Secondary nameservers use the serial and timers to stay in sync, and resolvers use the last field to decide how long to remember that a name does not exist.

Output · dig +multiline SOA example.com @1.1.1.1 (answer section)
example.com.		1448 IN	SOA elliott.ns.cloudflare.com. dns.cloudflare.com. (
				2418004112 ; serial
				10000      ; refresh (2 hours 46 minutes 40 seconds)
				2400       ; retry (40 minutes)
				604800     ; expire (1 week)
				1800       ; minimum (30 minutes)
				)

We ran that query on 9 November 2026 with dig 9.18 on our Debian 12 server, asking Cloudflare's public resolver; the iana.org values used below come from the same query for that zone. +multiline puts one field per line and adds the comments in plain time units; dig +short SOA example.com prints the same seven values on one line. Where SOA sits among the other record types is in DNS record types; this page goes through every field.

The seven fields

Fieldiana.orgMeaningRead by
MNAMEsns.dns.icann.org.The primary nameserver: the original source of the zone dataNOTIFY senders (they skip it), dynamic update clients
RNAMEnoc.dns.icann.org.Mailbox of the person responsible, first dot standing for @People
SERIAL2026110303Version number of the zone, unsigned 32 bitSecondaries
REFRESH7200Seconds between a secondary's checks of the serialSecondaries
RETRY3600Seconds before a failed check is retriedSecondaries
EXPIRE1209600Seconds after which a secondary that cannot reach the primary stops being authoritativeSecondaries
MINIMUM3600Today: the TTL for negative answers (RFC 2308)Resolvers

All times are in seconds (RFC 1035, section 3.3.13). The number before IN is the TTL of the SOA record itself, which matters for negative caching below. RFC 1035 section 5.2 asks for exactly one SOA record at the top of each zone, so a subdomain only has its own SOA when it is delegated as a separate zone.

MNAME and RNAME: primary server and contact

  • MNAME names the server the zone originates from. Two protocols read it: DNS NOTIFY (RFC 1996) sends change notices to every server in the NS set except the one named in MNAME, and dynamic update clients (RFC 2136) try MNAME first when it is also listed as an NS. In a "hidden primary" setup MNAME can name a server that the public NS records do not list. With a hosted DNS service it is one of the provider's own servers, as in the example.com output.
  • RNAME is a mailbox written as a domain name: the first dot is the @. noc.dns.icann.org. means noc@dns.icann.org and dns.cloudflare.com. means dns@cloudflare.com. A dot inside the local part is escaped with a backslash, the way RFC 1035's own example writes Action\.domains: john\.doe.example.com. is john.doe@example.com. RFC 1912 recommends a generic hostmaster address that reaches real people, because it is where DNS problems get reported.

The serial number

The serial is the zone's version. A secondary compares the primary's serial with its own and requests a zone transfer (AXFR, or the incremental IXFR) only when the primary's is higher. "Higher" follows RFC 1982 serial arithmetic: the number is an unsigned 32 bit value that wraps around after 4294967295, and one step may add at most 2147483647. The digits mean nothing to DNS, so the format is a convention:

SchemeExampleNotes
Date, YYYYMMDDnn (RFC 1912)2026110901Readable; nn allows 100 changes per day; iana.org uses it
Counter42Simplest; says nothing about when
Unix time1794230547One change per second; today lower than any date serial
Chosen by the DNS software2418004112example.com on Cloudflare: not a date, it only has to grow

That third row is a trap. On 9 November 2026 the Unix time was 1794230547, smaller than 2026110901, so a zone that switches from date serials to Unix time looks older to its secondaries, and they keep the old copy. The same happens after a rollback to an old zone file, or when a typo adds a digit and you "fix" it by going back down.

To bring a serial down without touching every secondary, RFC 1912 section 3.1 describes a two-step jump: add 2147483647 to the bad serial (if the sum exceeds 4294967296, subtract 4294967296), publish it and wait until every secondary has loaded it (the RFC says two refresh periods; checking the serials is faster), then set the serial you want. To the secondaries, both steps count as increases; the RFC also covers the rare case that needs a second round.

Refresh, retry and expire

These three only concern secondary nameservers (RFC 1034 section 4.3.5). After loading the zone, a secondary waits REFRESH seconds, then asks the primary for its SOA. If the serial is higher, it transfers the zone over TCP. If the check fails, it tries again every RETRY seconds. If it cannot complete a check for EXPIRE seconds, it treats its copy as obsolete and discards it.

With DNS NOTIFY (RFC 1996), the primary tells its secondaries about a change as soon as it happens, and each one then checks the serial right away. REFRESH is the fallback for a lost notice, which is why an hour or two is normal. EXPIRE should outlast a major outage of the primary (RFC 1912 suggests two to four weeks), or a primary failure takes every secondary down with it.

FieldRFC 1912 suggestsiana.orgexample.com (Cloudflare)
REFRESH20 minutes to 2 hours (2 to 12 hours on slow links)7200 (2 hours)10000 (2 h 46 min)
RETRYA fraction of refresh3600 (1 hour)2400 (40 minutes)
EXPIRE2 to 4 weeks1209600 (2 weeks)604800 (1 week)
MINIMUM1 to 5 days, but for the old meaning (default TTL), see below3600 (1 hour)1800 (30 minutes)

MINIMUM: the negative caching TTL

The last field has changed meaning. RFC 1035 defined it as a lower bound for the TTL of every record in the zone, and zone files used it as the default TTL. RFC 2308 (1998) deprecated both: the default TTL moved to the $TTL directive at the top of the zone file, and MINIMUM became the TTL for negative answers. That is why RFC 1912's advice of one to five days, written for the old meaning, is far too long today.

When a name does not exist (NXDOMAIN), or exists without the record type asked for (NODATA), the authoritative server adds the SOA record to the authority section, with a TTL that is the lower of the SOA's own TTL and MINIMUM (RFC 2308, sections 3 and 5). Resolvers cache the negative answer for that long:

Output · dig +noall +comments +authority no-such-name-s1109.iana.org @1.1.1.1 (shortened)
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 8987
;; AUTHORITY SECTION:
iana.org.		3600	IN	SOA	sns.dns.icann.org. noc.dns.icann.org. 2026110303 7200 3600 1209600 3600

So if someone looks up new.example.com before you create it, resolvers that answered may keep saying "no such name" for up to that many seconds after the record exists. RFC 2308 also tells resolvers to cap how long they keep a negative answer, and calls a cap of one to three hours sensible and more than a day problematic; a MINIMUM of an hour or less, as in both zones here, stays inside that. Clearing your own cache helps on your machine only; the steps are in how to flush the DNS cache.

Check that every nameserver has the same serial

Linux · macOS
dig +nssearch example.com
for ns in $(dig +short NS example.com); do
  echo "$ns $(dig +short +norecurse SOA example.com @"$ns")"
done

+nssearch finds the zone's authoritative servers and prints the SOA each one holds, plus the addresses that did not answer. The loop does the same by hand, asking each server directly with recursion off. Every line should show the same serial shortly after a change; one that lags is a secondary that did not get the update. On Windows, nslookup -type=soa example.com NAMESERVER works the same way, as the nslookup guide shows. Reverse zones have SOA records too, which is how you find who runs the reverse DNS of an address, see reverse DNS and PTR records.

What goes wrong with SOA records

  • Serial not raised after an edit. The primary serves the new data, the secondaries keep the old, and answers differ depending on which server a resolver asks. A NOTIFY does not help: the secondary checks the serial, sees no change and transfers nothing. Raise the serial with every manual zone edit and reload.
  • Serial went down. A rollback, a scheme switch or a corrected typo. Secondaries ignore the "older" zone until you use the two-step jump above.
  • Transfers blocked. Zone transfers run over TCP port 53, and the primary has to permit each secondary (in BIND, allow-transfer). Secondaries then serve stale data until EXPIRE and drop the zone after it.
  • EXPIRE shorter than REFRESH or RETRY. A secondary can drop the zone before it even tried again. RFC 1912 wants EXPIRE above the retry interval and the minimum.
  • A new record that "does not work". Usually negative caching from a lookup before the record existed: wait out MINIMUM (or the SOA TTL, if lower).

Frequently asked

What is an SOA record?

The Start of Authority record is the one record at the top of every DNS zone. It names the primary nameserver (MNAME) and the administrator's mailbox (RNAME) and holds the zone's serial number and four timers: refresh, retry, expire and the negative caching TTL. Secondary nameservers use it to stay in sync, and resolvers use it to cache answers for names that do not exist.

What format should the SOA serial number have?

Any unsigned 32 bit number works as long as it goes up with every change. RFC 1912 recommends the date format YYYYMMDDnn, for example 2026110901, which allows 100 changes per day. Never let it go down: secondaries treat a lower serial as an older zone and keep their old copy.

What does the minimum field in an SOA record mean?

Since RFC 2308 it is the TTL for negative answers: resolvers cache an NXDOMAIN for the lower of this value and the SOA record's own TTL. Its original meaning, a minimum TTL for every record in the zone, was deprecated in 1998, and default TTLs now come from the $TTL directive. Values of an hour or less are common today, for example 3600 on iana.org and 1800 on Cloudflare zones.

How do I check the SOA record of a domain?

Run dig SOA example.com, or dig +multiline SOA example.com for one field per line with the times spelled out; on Windows use nslookup -type=soa example.com. dig +nssearch example.com asks every authoritative nameserver for its copy, so you can see whether their serials match.

Related articles

All guides