The SOA record defines the authority and synchronization parameters for your DNS zone.
The SOA (Start of Authority) record is the most important record in a DNS zone. Present at the apex of every zone, it identifies the primary nameserver, the zone administrator, and defines synchronization parameters between primary and secondary servers. Without SOA, a DNS zone simply cannot function.
SOA plays a critical role in DNS infrastructure: it controls how secondary servers refresh their zone copies, how long they should retry on failure, and when to consider data expired. Poorly configured SOA parameters can cause propagation delays, secondary desynchronization, or excessive DNS traffic.
Understanding SOA is essential for anyone managing authoritative DNS. Whether you use a managed DNS provider or run your own servers, SOA parameters directly impact your domain's reliability and failover behavior.
An SOA record contains seven important fields:
Proper SOA configuration ensures reliable DNS operation:
Here's how to set up SOA properly:
Here are SOA records and verification commands:
; Standard SOA record format
example.com. IN SOA ns1.example.com. admin.example.com. (
2024011501 ; Serial (YYYYMMDDNN)
7200 ; Refresh (2 hours)
1800 ; Retry (30 minutes)
1209600 ; Expire (2 weeks)
300 ; Minimum TTL (5 minutes)
)
; Explanation of timers:
; Refresh: Secondaries check for updates every 7200 seconds
; Retry: If refresh fails, retry every 1800 seconds
; Expire: Stop serving after 1209600s without successful refresh
; Minimum: Negative cache TTL (NXDOMAIN responses)
# Query SOA record
$ dig SOA example.com +short
ns1.example.com. admin.example.com. 2024011501 7200 1800 1209600 300
# Check serial across multiple nameservers
$ for ns in ns1 ns2 ns3; do
echo -n "$ns: "
dig SOA example.com @$ns.example.com +short | awk '{print $3}'
done
ns1: 2024011501
ns2: 2024011501
ns3: 2024011501
# Force zone transfer (AXFR) from primary
$ dig AXFR example.com @ns1.example.com
The serial number is critical: secondaries only update when they see a higher serial. If you forget to increment it, changes won't propagate to secondaries.
Optimize your SOA configuration:
Secondary nameservers won't detect the change and won't request a zone transfer. Your updates will only be served by the primary.
Yes, but YYYYMMDDNN is recommended for readability and debugging. Whatever format you use, always increment on changes.
If you accidentally set a serial too high, you can't go back. Options: wait for the number to become valid (YYYYMMDDNN) or perform a full zone refresh on all secondaries.
Depends on change frequency. Static zones: 24-48 hours. Dynamic zones: 1-4 hours. Note: NOTIFY messages trigger immediate refresh.
Despite its name, Minimum now primarily controls negative caching TTL - how long resolvers cache NXDOMAIN (name doesn't exist) responses.
Yes, MoniTao can monitor your SOA records and alert you if serials become inconsistent across nameservers or if parameters change unexpectedly.
The SOA record is the foundation of DNS zone management. Proper configuration ensures reliable synchronization between primary and secondary nameservers, critical for redundancy and global DNS performance.
Use consistent serial numbering, set appropriate timers for your change frequency, and monitor serial consistency across servers. MoniTao helps you track SOA health and detect synchronization issues before they impact users.
Start free, no credit card required.