Record type reference
SOA Record
An SOA (start of authority) record sits at the top of every zone. It names the primary server and a contact mailbox, and carries the serial number and timers that control zone transfers and negative caching.
SOA record at a glance
| Field | Value |
|---|---|
| Type code | 6 |
| Defined in | RFC 1035, section 3.3.13; MINIMUM redefined by RFC 2308 |
| Value | Seven fields: MNAME, RNAME, SERIAL, REFRESH, RETRY, EXPIRE, MINIMUM |
| Allowed at the apex | Required there, exactly one per zone |
| Elsewhere | Only at the apex of a delegated subzone, which is its own zone |
Here is how an SOA record looks in a zone file:
example.com. 3600 IN SOA ns1.example.net. hostmaster.example.com. (
2026110801 ; serial
7200 ; refresh
3600 ; retry
1209600 ; expire
3600 ) ; minimum (negative caching TTL)
The labels after the semicolons are zone file comments, part of the record syntax rather than commands.
What each field means
| Field | Meaning | Typical value |
|---|---|---|
| MNAME | The primary name server for the zone | ns1.example.net. |
| RNAME | The contact mailbox, with the first dot standing for @ | hostmaster.example.com. means [email protected] |
| SERIAL | Version number of the zone; secondaries transfer when it rises | 2026110801 (date plus a counter) |
| REFRESH | How often secondaries check the serial | 1 to 24 hours |
| RETRY | How soon a secondary retries after a failed check | Less than REFRESH |
| EXPIRE | How long a secondary keeps serving without reaching the primary | 1 to 4 weeks |
| MINIMUM | How long resolvers cache "this name does not exist" | 5 minutes to 1 hour |
Serial numbers and zone transfers
Secondary servers compare their serial with the primary's. If the primary's is higher, they request a zone transfer (AXFR or IXFR). Most providers also send a NOTIFY so secondaries check immediately instead of waiting for REFRESH. Serials use wrap-around arithmetic (RFC 1982), so you can never go backwards: a lower serial looks older and secondaries ignore the change.
Managed DNS providers usually set the serial for you, and some use a Unix timestamp or a counter instead of a date. Any scheme works as long as it only increases.
Negative caching
When a name does not exist, the authoritative server returns NXDOMAIN with the SOA record in the authority section. Resolvers cache that "no" for the lower of the SOA's own TTL and its MINIMUM field. A long value means a newly created name can stay invisible to users who looked it up just before you added it. Negative caching and SOA record tuning go deeper.
How to look up an SOA record
Each tool below sends the query to your default resolver unless you name a server. Swap in your own domain for example.com, and add a public resolver such as 1.1.1.1 to compare answers with what your network sees.
dig (macOS, Linux, WSL)
| Command | What it does |
|---|---|
| dig example.com SOA | The full SOA record, with TTL |
| dig +short example.com SOA | The seven fields on one line |
| dig +nssearch example.com | The SOA serial from every listed name server, to spot one that is out of sync |
| dig @ns1.example.net example.com SOA +norecurse | The SOA straight from one authoritative server |
| dig does-not-exist.example.com A | An NXDOMAIN answer, with the SOA in the authority section |
nslookup (Windows, macOS, Linux)
| Command | What it does |
|---|---|
| nslookup -type=SOA example.com | The SOA fields, labeled one per line |
| nslookup -type=SOA example.com ns1.example.net | The SOA from one authoritative server |
PowerShell (Windows)
| Command | What it does |
|---|---|
| Resolve-DnsName -Name example.com -Type SOA | The SOA record with each field as a column |
| Resolve-DnsName example.com -Type SOA | Select-Object PrimaryServer, NameAdministrator, SerialNumber | Just the primary server, contact and serial |
| Resolve-DnsName example.com -Type SOA -Server ns2.example.org -NoRecursion | Compare the serial on a second name server |
Common mistakes
- Lowering the serial by hand. Secondaries treat the zone as older and stop updating.
- An RNAME with an @ sign. Write the mailbox with a dot; a literal dot in the local part is escaped as \..
- A very long MINIMUM. New names stay hidden behind cached NXDOMAIN answers.
- EXPIRE shorter than a plausible outage. Secondaries stop answering if the primary is down longer than EXPIRE.
- Serials that differ between name servers for hours. A secondary is not transferring; check NOTIFY, allowed transfer addresses and firewalls.
SOA records in Domain Visualizer
Domain Visualizer reads the apex SOA on every scan and shows it in the record detail panel. A domain whose NS and SOA lookups both fail is reported as DNS not working, and no score is given.
FAQ
Does the SOA record affect normal lookups?
Only indirectly. Resolvers do not need it to answer A or MX questions, but they use its MINIMUM field and TTL to decide how long to cache negative answers.
Why does the RNAME field have no @ sign?
DNS names cannot contain @, so the first dot of the field stands in for it. hostmaster.example.com. means [email protected].
Do I need to update the serial with a managed DNS provider?
Usually not. Managed providers raise the serial automatically when you save a change. You only manage it yourself when you edit zone files for your own servers.
Sources and further reading
- RFC 1035: Domain Names, Implementation and Specification: section 3.3.13 defines SOA
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE)
- RFC 1982: Serial Number Arithmetic
- RFC 1996: A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY)
- BIND 9 manual: dig
- Microsoft Learn: nslookup
- Microsoft Learn: Resolve-DnsName