Use it when secondary servers serve old data, or when a newly created name is still reported as non-existent.
DNS SOA Field Reference
Every zone has one SOA record at its top: the primary server, the responsible person, the zone's serial number, the timers secondary servers follow, and how long "no such name" answers may be cached.
1. dig <domain> +nssearch — do all servers show the same serial?
2. One is lower → it has not transferred the zone: serial not raised, or the transfer (TCP 53) is blocked.
3. New name "does not exist" → negative answer cached for at most the minimum value.
4. A secondary no longer answers → it lost contact with the primary beyond the expire time.
zone changed on the primary → serial raised → secondaries notified or refresh → zone transferred over TCP 53 → all servers answer with the same serial
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
dig example.com SOAVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
dig example.com SOA
dig example.com SOA +multiline @ns1.example.com
dig example.com +nssearch
dig example.com NS +short
+multiline prints the SOA with each field labelled. +nssearch asks every server of the zone for its SOA and prints them side by side — the quickest way to see whether all of them have the same serial. The NS query lists the servers that should be compared.
Known-good: every server of the zone returns the same serial, and it is the one expected after the last change.
Step 2 Failure isolation workflow Narrow the fault
- One server answers with old data. Its serial is lower: it has not transferred the zone. The serial was not raised, the NOTIFY did not arrive, or the transfer is blocked by an access list or firewall (TCP port 53).
- Answers differ depending on which server is asked. The same cause; compare serials with
+nssearch. - A secondary stopped answering for the zone. It lost contact with the primary for longer than the expire time.
- A serial was set far too high. Secondaries ignore every later, lower value until the numbering is repaired deliberately.
- A new name is still reported as non-existent. A negative answer is cached; it lasts at most the minimum value.
- Mail to the zone's contact bounces. The responsible-person field is written with an
@, or was never a working address.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A secondary copies the zone only when the primary's serial is higher than its own — changing records without raising the serial leaves secondaries stale. The last field, minimum, is how long negative answers are cached.
dig <domain> SOA +multiline— each field labelled.dig <domain> +nssearch— the SOA from every server of the zone, side by side.dig <domain> NS +short— the servers that should agree.dig <domain> SOA @<server>— one server's serial.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Every DNS zone has exactly one SOA (start of authority) record at its top. It names the primary server and the responsible person, carries the zone's version number, and sets the timers that secondary servers follow — plus the time for which "no such name" answers may be cached.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
Two everyday problems trace back to this record. Secondary servers that keep serving old data usually do so because the serial number was not increased after a change. And a newly created name that still "does not exist" for some users is explained by the last field, which governs how long that negative answer is remembered.
ReferenceHow it works1 section · depth on demand
How it works
example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. (
2026111501 ; serial
7200 ; refresh
900 ; retry
1209600 ; expire
3600 ) ; minimum
| Field | Meaning |
|---|---|
| Primary server (MNAME) | The server where the zone is edited |
| Responsible person (RNAME) | An e-mail address with the @ written as a dot: hostmaster.example.com. is hostmaster@example.com |
| Serial | The version number of the zone |
| Refresh | How often a secondary asks the primary whether the serial has changed |
| Retry | How soon it tries again if that check fails |
| Expire | How long a secondary goes on answering without contact with the primary; after that it stops serving the zone |
| Minimum | How long resolvers may cache a negative answer for this zone |
The serial. A secondary copies the zone only when the primary's serial is higher than its own. Changing records without raising the serial leaves the secondaries on the old version indefinitely. A common convention is the date followed by a two-digit counter, as above; DNS management systems normally handle it automatically. A serial that has been set too high by mistake cannot simply be lowered — secondaries will consider the lower value older.
Refresh, retry, expire. Most primaries also send a NOTIFY to their secondaries the moment the zone changes, so the refresh timer is only a fallback. Expire should be long — weeks — so that an outage of the primary does not take the whole zone down.
Minimum and negative answers. When a server answers that a name does not exist, it includes the SOA record. Resolvers cache that negative answer for the lower of the SOA record's own TTL and the minimum field. A name queried just before it was created therefore stays "non-existent" in those resolvers for that long.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
The SOA record field by field
Every zone has exactly one SOA record at its apex, and its fields control replication and negative caching. RFC 1035 defines them:
- MNAME: the primary name server.
- RNAME: the responsible person's mailbox, with the first dot standing for @.
- SERIAL: a 32-bit version number that uses sequence-space arithmetic.
- REFRESH: how often secondaries check for changes.
- RETRY: how long to wait after a failed check.
- EXPIRE: how long a secondary keeps answering without contact with the primary.
- MINIMUM: originally a minimum TTL. RFC 2308 redefined it as the TTL for negative answers.
Typical values
| Field | Example | Notes |
|---|---|---|
| SERIAL | 2026112801 | Date plus counter (YYYYMMDDnn) is common |
| REFRESH | 7200 (2 h) | With NOTIFY, secondaries update faster anyway |
| RETRY | 900 (15 min) | Lower than REFRESH |
| EXPIRE | 1209600 (2 weeks) | Long enough to survive a primary outage |
| MINIMUM | 3600 (1 h) | Negative-cache TTL; RFC 2308 suggests 1–3 hours works well |
Serial number rules
| Situation | Effect |
|---|---|
| Serial increased | Secondaries transfer the zone |
| Serial unchanged after an edit | Secondaries never see the change |
| Serial decreased | Secondaries ignore the update until sequence arithmetic wraps |
host$ dig example.net SOA +noall +answer
example.net. 3600 IN SOA ns1.example.net. hostmaster.example.net. 2026112801 7200 900 1209600 3600
host$ for ns in $(dig example.net NS +short); do echo -n "$ns "; dig @$ns example.net SOA +short | awk '{print $3}'; done
ns1.example.net. 2026112801
ns2.example.net. 2026112801
host$ dig @ns2.example.net example.net SOA +norecurse +noall +comments | grep flags
Checking replication
Comparing the serial on every authoritative server shows at once whether all of them serve the same version of the zone. A secondary with an older serial is behind. Check the zone transfers (AXFR/IXFR), the NOTIFY messages and the ACLs between the servers.
RNAME
hostmaster.example.net. means hostmaster@example.net. A dot in the local part must be escaped, for example john\.smith.example.net..
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → DNS SOA Field Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc1034.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
DNS SOA Fields
Serial/Refresh/Retry/Expire/Minimum.
30-second lookup
- Open Packet Field Explorer for field-level metadata.
- Use Packet Decoders for bit/flag values where relevant.
- Use Paste Output / Structured Parser for CLI evidence.
- Use Packet Filters to prove the wire boundary.
Evidence rule
A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.