SOA record at a glance

FieldValue
Type code6
Defined inRFC 1035, section 3.3.13; MINIMUM redefined by RFC 2308
ValueSeven fields: MNAME, RNAME, SERIAL, REFRESH, RETRY, EXPIRE, MINIMUM
Allowed at the apexRequired there, exactly one per zone
ElsewhereOnly 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

FieldMeaningTypical value
MNAMEThe primary name server for the zonens1.example.net.
RNAMEThe contact mailbox, with the first dot standing for @hostmaster.example.com. means [email protected]
SERIALVersion number of the zone; secondaries transfer when it rises2026110801 (date plus a counter)
REFRESHHow often secondaries check the serial1 to 24 hours
RETRYHow soon a secondary retries after a failed checkLess than REFRESH
EXPIREHow long a secondary keeps serving without reaching the primary1 to 4 weeks
MINIMUMHow 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)

CommandWhat it does
dig example.com SOAThe full SOA record, with TTL
dig +short example.com SOAThe seven fields on one line
dig +nssearch example.comThe SOA serial from every listed name server, to spot one that is out of sync
dig @ns1.example.net example.com SOA +norecurseThe SOA straight from one authoritative server
dig does-not-exist.example.com AAn NXDOMAIN answer, with the SOA in the authority section

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup -type=SOA example.comThe SOA fields, labeled one per line
nslookup -type=SOA example.com ns1.example.netThe SOA from one authoritative server

PowerShell (Windows)

CommandWhat it does
Resolve-DnsName -Name example.com -Type SOAThe SOA record with each field as a column
Resolve-DnsName example.com -Type SOA | Select-Object PrimaryServer, NameAdministrator, SerialNumberJust the primary server, contact and serial
Resolve-DnsName example.com -Type SOA -Server ns2.example.org -NoRecursionCompare 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