The fields
example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. (
2026112101 ; serial
7200 ; refresh: how often secondaries check for changes
3600 ; retry: how soon to retry after a failed check
1209600 ; expire: when secondaries stop serving if the primary is unreachable
300 ) ; minimum: how long "does not exist" answers are cached
- mname is the primary nameserver.
- rname is the contact mailbox, with the first dot standing for @:
hostmaster.example.commeanshostmaster@example.com. - The last value is the negative-caching TTL (RFC 2308): how long resolvers remember that a name or record does not exist.
When it matters
If you run your own primary and secondaries, the serial must increase with every change, or secondaries will not update. Use the NS lookup to compare serials across all nameservers. With managed DNS hosts such as Cloudflare or Route 53, the SOA is handled for you.
Questions
What is the SOA serial number for?
Secondary nameservers compare it with their copy. When the primary's serial is higher, they fetch the zone again. Many hosts use the date format YYYYMMDDnn.
Why do new records sometimes take long to show up for some users?
If someone looked up the name before it existed, their resolver cached a 'does not exist' answer for the SOA minimum (negative-caching) time. Lowering that value shortens the wait next time.
How do I check that all nameservers have the same serial?
The NS lookup tool queries each nameserver directly and compares their SOA serials.