The SOA (Start of Authority) record is the zone’s header: it names the primary name server, a contact mailbox, a serial number that changes whenever the zone changes, and four timers. Secondary servers use the serial and the timers to decide when to copy the zone; resolvers use the last field to cache “does not exist” answers. Every zone has exactly one SOA at its top. Read yours with the SOA check.
A typical SOA record:
example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. (
2026102101 ; serial
7200 ; refresh
900 ; retry
1209600 ; expire
3600 ) ; minimum
The seven fields
RFC 1035 §3.3.13 defines the data layout. All times are in seconds.
| Field | Meaning | Common mistake |
|---|---|---|
| MNAME | Domain name of the primary source of data for the zone | Naming a host that no longer exists or is not a name server for the zone |
| RNAME | Mailbox of the person responsible, written as a domain name | Putting an @ in the zone file |
| SERIAL | Unsigned 32-bit version number of the zone | Not increasing it after an edit |
| REFRESH | How often a secondary checks the primary for a new serial | Very long values delay updates |
| RETRY | Wait before trying again after a failed refresh | Set so short that a failing primary is hammered |
| EXPIRE | How long a secondary may keep serving without contact before it stops answering authoritatively | Set shorter than a typical outage |
| MINIMUM | Originally a TTL floor; now the negative-caching TTL | Treating it as the default TTL for all records |
RNAME replaces the @ of the email address with a dot, so hostmaster.example.com. stands for hostmaster@example.com. RFC 1035 §8 describes the mapping: the local part becomes a single label, and a local part containing dots needs backslash quoting in a master file (Action.domains@ISI.EDU becomes Action\.domains.ISI.EDU). A simple mailbox such as hostmaster avoids the problem.
Managed DNS providers may fill in MNAME, RNAME and the timers for you and not let you edit them; check your provider’s documentation. Compare with the NS lookup to see which servers the zone delegates to.
Serial number formats
The serial is how a secondary knows the primary has newer data: if the primary’s serial is higher, the secondary fetches the zone. Three formats are common.
- YYYYMMDDnn, such as
2026102101: date plus a two-digit revision. RFC 1912 §2.2 recommends this syntax. It is readable, but allows only 99 changes a day, and a second edit on the same day needsnnincreased. - Counter: start at 1 and add 1 per change. Simple and compact, and the usual choice for software that manages the zone.
- Unix time, such as
1792540800: seconds since 1970. Automatic and increasing, as long as clocks are correct. It fits in 32 bits until 2106.
Pick one and keep it. Switching formats can move the number backwards. A Unix timestamp from October 2026 is smaller than a 2026102101 date serial, so changing a zone from the date format to a timestamp makes the new serial look older, and secondaries will not update. Before changing the format, check that the new serial is higher than the current one.
Serial arithmetic: why wrapping is defined
The serial is 32 bits and wraps around. RFC 1982 defines how two serials are compared in that space. Per §3.1 you may add a value from 0 to 2^31 − 1 to a serial, and the sum wraps. §3.2 says that of two serials, the “larger” one is the one that is less than half the space ahead; comparing two values exactly half the space apart is undefined. RFC 1982 §7 states the practical limit for SOA: the largest defined increment is 2147483647 (2^31 − 1), and larger jumps within the expire period can leave some secondaries on stale data whose serials still compare as greater.
If a serial was set too high by mistake, lowering it makes every secondary treat the primary as older, so they keep the stale copy. Your DNS software’s documentation describes its reset procedure, which usually means either forcing a full zone transfer on each secondary or walking the serial forward past its old value in steps no larger than the limit above.
Timer guidance
RFC 1912 §2.2 gives advice for self-run zones. These are guidance from an informational RFC, not rules.
- Refresh: “how long your secondaries can comfortably contain out-of-date data.” Shorter suits fast-changing data, longer suits stable zones.
- Retry: “typically some fraction of the refresh interval.”
- Expire: longer than a major outage would last; 2 to 4 weeks are suggested.
- Minimum: RFC 1912 calls it “by far the most important timer” and suggests values of 1 to 5 days. That text predates RFC 2308, which changed its meaning. Read the next section before following it.
The minimum field and negative caching
RFC 2308 §4 lists three historical meanings of the field and keeps one: the TTL for negative responses (the name or the record type does not exist). RFC 2308 §5 says the negative answer’s TTL is the smaller of the SOA’s own TTL and the SOA MINIMUM. Resolvers then cache the NXDOMAIN or empty answer that long.
The trade-off: a long value makes a new record slow to appear for resolvers that already looked it up and got “no”. Create app.example.com right after someone queried it, and with an hour-long negative TTL that resolver keeps answering NXDOMAIN for up to an hour. RFC 2308 §5 notes that values of one to three hours have been found to work well and that more than a day has been found problematic. See DNS propagation explained for how this shows up as “it works for me but not for them”.
FAQ
My serial did not increase after I edited the zone. Is that a problem? Primary-secondary setups will not copy the change, since the secondary sees no newer serial and keeps serving the old zone. Hosted DNS services normally increment it for you. If you run your own server, raise it by hand or use a tool that does, then reload. Compare the serial on each name server with the SOA check.
Does the SOA TTL equal the minimum field? No. The SOA record has its own TTL, like any record, and a separate MINIMUM field in its data. For negative answers the resolver uses the smaller of the two, per RFC 2308 §5. For example, an SOA with TTL 3600 and MINIMUM 300 gives a five-minute negative cache.
Which email address does RNAME point to?
The contact for the zone, written with a dot instead of the @. Nothing requires that the mailbox exists, but an unmonitored one defeats its purpose, since other operators use it to report problems with your zone. For example, hostmaster.example.com. means hostmaster@example.com.
Sources
- RFC 1035, §3.3.13 SOA RDATA format and §8 Mail support: https://www.rfc-editor.org/rfc/rfc1035#section-3.3.13
- RFC 1912, §2.2 Serial numbers and SOA timers: https://www.rfc-editor.org/rfc/rfc1912#section-2.2
- RFC 1982, Serial Number Arithmetic (§3.1, §3.2, §7): https://www.rfc-editor.org/rfc/rfc1982
- RFC 2308, Negative Caching of DNS Queries (§4, §5): https://www.rfc-editor.org/rfc/rfc2308