What is an SOA record?
Every DNS zone, such as example.com, has exactly one start of authority record at its apex. It declares that the zone exists, who is responsible for it and how copies of it should be kept in sync. Hosted DNS providers create and manage it automatically, so many people never look at it. It matters when you run your own name servers, when you troubleshoot why a new record seems missing, and when a zone transfer between servers fails.
What do the fields mean?
$ dig example.com SOA +noall +answer +nocmd example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. 2026120301 7200 900 1209600 300
| Field | Example | Meaning |
|---|---|---|
| MNAME | ns1.example.com. | Primary name server for the zone |
| RNAME | hostmaster.example.com. | Contact email, with the first dot standing for @ |
| Serial | 2026120301 | Version number of the zone, raised on every change |
| Refresh | 7200 | How often secondaries check the serial, in seconds |
| Retry | 900 | How soon a secondary retries after a failed check |
| Expire | 1209600 | When a secondary stops answering if it cannot reach the primary |
| Minimum | 300 | Today: how long resolvers cache "name does not exist" |
How do secondaries use the serial?
A secondary name server keeps a copy of the zone. Every refresh interval, or immediately when the primary sends a NOTIFY message, it asks the primary for the SOA and compares serials. If the primary's serial is higher, the secondary transfers the zone (AXFR for a full copy, IXFR for just the changes). If the serial was not raised, the secondary assumes nothing changed, which is the classic reason a hand-edited zone does not reach the secondary. A common convention is the date plus a two-digit counter, YYYYMMDDnn, so 2026120301 is the first change on 3 December 2026.
Why does the minimum field matter for new records?
RFC 2308 redefined the last field as the negative caching TTL. When a resolver asks for a name that does not exist, it caches that "no such name" answer for the lesser of this value and the SOA record's own TTL. If you query a record before creating it, for example testing api.example.com just before adding it, resolvers may keep saying it does not exist for that long. A value of 300 to 3600 seconds is typical; shorter values help zones that change often. DNS propagation covers the rest of the caching story.
How do I check that all name servers agree?
for ns in $(dig +short NS example.com); do printf '%-28s ' "$ns"; dig +short SOA example.com @"$ns" | awk '{ print $3 }'; done
Every authoritative server should report the same serial. A server lagging behind means transfers are failing: check firewall rules for TCP and UDP port 53 between primary and secondary, the allow-transfer settings on the primary, and the secondary's logs. Run the same check after each change during a migration. The dig command lists more dig options.
How does an SOA look in a zone file I run myself?
$TTL 3600
@ IN SOA ns1.example.com. hostmaster.example.com. (
2026120301 ; serial
7200 ; refresh
900 ; retry
1209600 ; expire
300 ) ; negative cache TTL
IN NS ns1.example.com.
IN NS ns2.example.com.
Check it before loading: named-checkzone example.com /etc/bind/db.example.com for BIND, or kzonecheck for Knot. Both catch missing dots, bad serials and syntax errors. If you run both name servers yourself, putting them on machines in two different cities, such as Seattle and Amsterdam, keeps the zone online even if one location has trouble. An E1 or E2 is more than enough for authoritative DNS.
Do I need to edit the SOA at a hosted DNS provider?
Rarely. Providers bump the serial automatically and pick sensible timers. Some let you change the negative TTL or the contact address; adjust the negative TTL if you frequently create records shortly after testing them. Everything else can stay at the defaults. When running your own servers, the fields above are yours to set, and the serial rule is the one to remember. See DNS provider for choosing between hosted and self-run DNS.
Machines for Authoritative Name Servers
| Server | Processor | Cores / threads | Memory | Storage | Network | Per month | Smallest order |
|---|---|---|---|---|---|---|---|
| E1 | Intel Xeon E3-1240 v3 | 4 / 8 | 16 GB DDR3 | 2x 240 GB SSD | 2x 1 Gbps | $30.52 | $91.56 (3 months) |
| E2 | Intel Xeon E3-1270 v3 | 4 / 8 | 32 GB DDR3 | 1x 480 GB SSD | 2x 1 Gbps | $38.32 | $114.96 (3 months) |
| S1 | Intel Xeon E-2276G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $53.32 | $53.32 (1 month) |
| S2 | Intel Xeon E-2356G | 6 / 12 | 64 GB DDR4 | 1x 1 TB NVMe | 2x 10 Gbps | $58.39 | $58.39 (1 month) |
Keep Reading
DNS provider
The service that hosts your domain's DNS records, how it differs from the registrar, and how to choose and set one up for a server.
OpenDNS propagation
Why a DNS change takes time to reach everyone, how TTLs and caches decide the delay, and how to plan a server move with almost no wait.
OpenDNS resolver
The server that turns names into addresses for your machine, how recursive lookups work, and how to run a fast, private resolver on Linux.
OpenThe dig command
Query DNS precisely with dig: record types, short answers, specific resolvers, full delegation traces, reverse lookups and DNSSEC checks.
OpenFAQ
Quick Answers
Start of Authority. It is the record at the top of a DNS zone that names the primary server and holds timing values.
Most often the serial was not increased, so the secondary saw no change. Raise the serial and send a NOTIFY or wait for the refresh.
It sets how long resolvers cache negative answers, meaning that a name does not exist.
Run dig example.com SOA and look at the answer section, or add +short for just the fields.
DNS names cannot contain @, so the first dot in the RNAME field stands for it.