SOA Record
Start of Authority
- Type code
- 6
- Status
- In use
- Defined in
- RFC 1035
What the SOA record is for
Every zone has exactly one SOA record, at the zone apex. It names the primary name server for the zone, gives a mailbox for the person responsible for it, and carries a serial number that changes each time the zone changes.
Secondary servers use the SOA to decide when to pull a fresh copy of the zone: they check the serial every REFRESH seconds, retry after RETRY seconds if that fails, and stop answering for the zone if they cannot reach the primary for EXPIRE seconds.
Resolvers use the SOA for negative caching. When a name or type does not exist, the authoritative server returns the SOA in the authority section, and RFC 2308 says the answer may be cached for the lesser of the SOA record's own TTL and its MINIMUM field.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| MNAME | domain name | The name of the primary name server for the zone. |
| RNAME | domain name | The mailbox of the person responsible for the zone, with the @ written as a dot (hostmaster.example.com means hostmaster@example.com). |
| SERIAL | 32 bits | The version number of the zone. It is compared with serial number arithmetic (RFC 1982), so it can wrap. |
| REFRESH | 32 bits | Seconds a secondary waits between checks of the serial. |
| RETRY | 32 bits | Seconds a secondary waits before retrying a failed refresh. |
| EXPIRE | 32 bits | Seconds after which a secondary that cannot refresh stops answering for the zone. |
| MINIMUM | 32 bits | Originally a minimum TTL for the zone; since RFC 2308 it is the TTL for negative answers. |
Zone file syntax
<owner> <ttl> IN SOA <mname> <rname> <serial> <refresh> <retry> <expire> <minimum>
Example
The SOA record at google.com, fetched from live DNS on 27 November 2026:
google.com. 60 IN SOA ns1.google.com. dns-admin.google.com. 1030569573 900 900 1800 60
Common mistakes
- Editing the zone without increasing SERIAL. Secondaries compare serials, so they keep serving the old data.
- Setting SERIAL lower to "fix" a typo. Secondaries treat a lower serial as older and ignore it; going back needs a deliberate wrap using serial number arithmetic.
- Writing RNAME with an @ sign, or with an unescaped dot in the local part (john.doe), which turns into a different mailbox.
- Setting MINIMUM to a day or more. A name that was missing stays missing in resolver caches for that long after you add it.
- Setting EXPIRE shorter than REFRESH and RETRY, so secondaries give up on the zone during a short primary outage.
Specifications
- RFC 1035: Domain names - implementation and specification
- RFC 1982: Serial Number Arithmetic (Defines how SERIAL values are compared and how they wrap.)
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE) (Redefines MINIMUM as the TTL for negative answers.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.