SOA Record
A DNS Start of Authority (SOA) record is a mandatory record in every DNS zone that stores important administrative information about the zone. It contains details about the zone such as the primary nameserver, the email address of the zone administrator, the zone's serial number, and timing parameters that control zone transfers and updates between nameservers.
How it works
Every DNS zone must have exactly one SOA record, and it must be the first record in the zone file. The SOA record serves as the authoritative source of information about the zone and is critical for coordinating zone transfers between primary and secondary nameservers. It contains timing parameters that determine how often secondary servers check for updates and how long they should cache zone data.
Key Points
- Every DNS zone must have exactly one SOA record as the first record in the zone
- The serial number must increment whenever zone data changes to trigger updates on secondary servers
- Refresh, retry, and expire values control zone transfer timing between nameservers
- The email address in the SOA record uses a dot instead of @ symbol
- SOA records are primarily used for zone management and aren't typically queried by end users
Common Use Cases
- Zone Transfer Coordination: Secondary nameservers use SOA serial numbers to detect when zone data has changed and needs to be transferred from the primary server
- Zone Authority Identification: The SOA record identifies the primary nameserver and administrator responsible for a DNS zone
- Stale Data Prevention: The expire field ensures secondary servers stop serving outdated zone data if they can't reach the primary server for an extended period
- Update Scheduling: Refresh and retry values determine how quickly zone changes propagate to secondary nameservers
code Example SOA Record
| Type | Host / Name | Value / Points to | TTL |
|---|---|---|---|
| SOA | @ | ns1.example.com admin.example.com 2025121301 86400 7200 3600000 172800 | 3600 |
| Field | Primary NS | ns1.example.com | — |
| Field | Admin Email | admin@example.com | — |
| Field | Serial | 2025121301 | — |
| Field | Refresh | 86400 (24h) | — |
| Field | Retry | 7200 (2h) | — |
| Field | Expire | 3600000 (~41d) | — |
| Field | Minimum | 172800 (48h) | — |
* An SOA record contains multiple fields with specific timing and administrative values. Values are typically in seconds.