What an SOA record is
An SOA (Start of Authority) record marks the start of a zone of authority and holds the zone's administrative data. A zone is the complete set of records for one part of the domain tree. The name servers that hold it as authoritative data are the authoritative servers.
A zone file should contain exactly one SOA record, at the top. Name servers periodically check that their copies of a zone are up to date. You can look up the SOA record for your domain to see it.
What each SOA field means
All SOA time values are in seconds.
| Field | Meaning | Unit |
|---|---|---|
| RNAME | Mailbox of the person responsible for the zone. | Mailbox name |
| SERIAL | Unsigned 32-bit version number of the zone's original copy, preserved by zone transfers. It wraps, so compare it with sequence space arithmetic, not a simple greater-than. | 32-bit number |
| REFRESH | Interval before the zone should be refreshed. | Seconds |
| RETRY | Interval that should elapse before a failed refresh is retried. | Seconds |
| EXPIRE | Upper limit on the time before the zone is no longer authoritative. | Seconds |
| MINIMUM | Minimum TTL (time to live, how long a cache may keep an answer) that should be exported with any record from the zone. | Seconds |
In the original definition, most SOA fields matter only for name server maintenance, while MINIMUM affects queries. That definition made MINIMUM a lower bound on record TTLs. The field was later overloaded with three meanings: minimum TTL for all records, default TTL for records without one, and TTL of negative responses.
Its practical use is negative caching. The negative-answer TTL is the lower of MINIMUM and the SOA record's own TTL. These are two different values. Azure DNS documentation says its minimumTTL field is by convention used for the negative caching duration.
The SOA record does not list your name servers. A zone should have both an NS record and an SOA record, and the SOA is the one that marks the start. To see the name servers, check a domain's NS records.
Example SOA record and how to look it up
This record is illustrative. The numbers are made up and are not recommendations.
example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. (
1 ; SERIAL
7200 ; REFRESH
3600 ; RETRY
1209600 ; EXPIRE
3600 ; MINIMUM
)
Here ns1.example.com. is the MNAME field and hostmaster.example.com. is RNAME. The 3600 after the name is the record's own TTL.
dig example.com SOA +noall +answer
example.com. 3600 IN SOA ns1.example.com. hostmaster.example.com. 1 7200 3600 1209600 3600
An authoritative server MUST include the zone's SOA record in the authority section when it answers NXDOMAIN (the name does not exist) or reports that no data of the requested type exists. This lets the answer be cached. Take a zone whose SOA record has a TTL of 3600 and a MINIMUM of 900. A resolver may cache a "does not exist" answer for example.com for at most 900 seconds.
To see current answers from different resolvers, use the DNS propagation checker.
References
- RFC 1035: Domain names - implementation and specification, IETF, section 6
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE), IETF
- Domain Name System (DNS) Parameters, iana.org
- Microsoft.Network/dnsZones/SOA - Bicep, ARM template & Terraform AzAPI reference | Microsoft Learn, learn.microsoft.com
- SOA Record for the parent zone is returned when the child zone uses NS record delegation - Connectivity Analyzer | Microsoft Learn, learn.microsoft.com