SOA Record: What a Start of Authority Record Is, 7 Fields, and Serial Format

A Start of Authority (SOA) record is the mandatory administrative record at the top of every DNS zone file that defines the primary nameserver, administrator contact, version serial number, and refresh timers. Secondary nameservers check the SOA serial to sync updates. The final field controls negative NXDOMAIN caching.

Visitor Resolver NS query Registry/Parent referral Your Nameservers A record IP ADDRESS the referral chain must be unbroken: one dead nameserver = intermittent failures
DNS zone authority and replication: the SOA record designates the primary master nameserver responsible for synchronizing secondary nameservers

What Is an SOA Record and What Do Its 7 Fields Mean? (Syntax and Anatomy)

Every valid DNS zone file in the world begins with exactly one Start of Authority (SOA) resource record (IANA Type 6) placed at the zone apex (@). Standard records like A, MX, and CNAME route visitor traffic, whereas the SOA record governs the zone's internal administration across 7 data fields (MNAME, RNAME, Serial, Refresh, Retry, Expire, and Minimum Negative Cache TTL). The table below defines all 7 fields inside a standard DNS SOA record.

The following zone excerpt demonstrates how production SOA records appear using standard multi-line BIND syntax with explanatory comments:

; Zone Apex   TTL    Class  Type  MNAME (Primary NS)      RNAME (Admin Email)
example.com.  3600   IN     SOA   ns1.example.com.        hostmaster.example.com. (
                                  2026103101 ; 1. Serial Number (YYYYMMDDnn)
                                  7200       ; 2. Refresh (2 hours = 7,200s)
                                  1800       ; 3. Retry (30 minutes = 1,800s)
                                  1209600    ; 4. Expire (14 days = 1,209,600s)
                                  3600       ; 5. Minimum / Negative Cache TTL (1 hour)
                                  )

The table below details the 7 data fields comprising every standard DNS SOA record, their formats, and their specific administrative functions:

SOA Field Name Example Value Format / Unit Function in Zone Administration
1. MNAME (Primary Master NS) ns1.example.com. Fully Qualified Domain Name Designates the primary master nameserver holding the authoritative editable zone file.
2. RNAME (Responsible Person) hostmaster.example.com. Email address with @ replaced by . Specifies the zone administrator email address (hostmaster@example.com encoded with a dot).
3. Serial 2026103101 32-bit unsigned integer (1 to 4,294,967,295) Revision counter incrementing on every zone file modification.
4. Refresh 7200 (2 hours) Seconds Cadence at which secondary nameservers query the primary SOA serial for updates.
5. Retry 1800 (30 minutes) Seconds Retry interval following an unsuccessful refresh attempt against the primary nameserver.
6. Expire 1209600 (14 days) Seconds Upper time limit a secondary nameserver answers queries during prolonged primary server outages.
7. Minimum (Negative Cache TTL) 3600 (1 hour) Seconds Negative cache ceiling for NXDOMAIN and NODATA responses (effective TTL is min(SOA TTL, MINIMUM) per RFC 2308 §3).

DNS server daemons strictly require both an SOA record and at least two companion NS Record entries before initializing an authoritative zone in memory. Administrators inspect all 7 parsed fields and live timer intervals across any domain in seconds using the SOA Record Lookup.

How Do Secondary Nameservers Use the SOA Record to Sync Zone Changes? (5 Steps)

Primary and secondary authoritative nameservers use the SOA record's Serial number and timers to keep zone files synchronized across 5 automated replication steps:

  1. Increment the SOA Serial number (2026103101 to 2026103102) on the primary (MNAME) server on any record modification.
  2. Transmit an immediate DNS NOTIFY push message (RFC 1996) to secondary nameservers, or await standard secondary polling upon Refresh timer expiration (7,200 seconds).
  3. Compare primary and secondary SOA serials; a higher primary serial initiates an incremental (IXFR) or full AXFR zone transfer to copy the updated records.
  4. Wait for the Retry timer (1,800 seconds) before re-querying the primary server following any failed refresh attempt.
  5. Stop answering authoritative domain queries once primary unreachable duration exceeds the Expire timer (1,209,600 seconds = 14 days), preventing indefinite serving of stale records.

Editing raw BIND, NSD, or Knot DNS configurations without advancing the SOA serial causes replication failure: secondary nameservers observe an unchanged serial, presume zero edits occurred, and serve stale records indefinitely. Secondary servers avoid serving stale records when serials advance, and administrators restrict zone transfers (AXFR) with IP access lists and cryptographic TSIG keys, verifiable through the AXFR / Zone Transfer Leak Checker.

How to Format the SOA Serial Number (YYYYMMDDnn) and RNAME Email Address

Two fields inside the SOA record follow special DNS formatting conventions that trip up administrators: the 10-digit YYYYMMDDnn serial number and the dot-encoded RNAME administrator email address:

  1. The YYYYMMDDnn Serial Number Convention (2026103101 vs Unix Epoch): The DNS protocol defines the Serial field as a 32-bit unsigned integer (1 to 4,294,967,295) advancing monotonically. Industry standard (RFC 1912) formats this counter as a 10-digit date stamp: YYYY (4-digit year) + MM (2-digit month) + DD (2-digit day) + nn (2-digit revision counter from 01 to 99). The initial edit on October 31, 2026 is 2026103101, and the second edit on that date is 2026103102. Cloud DNS platforms (such as Cloudflare and Route 53) often employ 10-digit Unix Epoch timestamps incrementing automatically on each change. RFC 1982 serial arithmetic uses modular comparison, handling 32-bit sequence wrapping.
  2. Why RNAME Uses a Dot (.) Instead of @ (And How to Escape Dots in Usernames): In BIND zone files, the @ character represents a reserved symbol expanding to the origin domain apex. Inserting a raw @ causes the parser to interpret the character as the zone apex rather than an email delimiter. The SOA RNAME convention substitutes the @ delimiter with a dot (hostmaster.example.com.). Mailbox usernames containing dots (such as john.doe@example.com) require escaping that period with a backslash (\) so resolvers isolate the username from domain labels:
    ; Email: hostmaster@example.com  -->  RNAME: hostmaster.example.com.
    ; Email: john.doe@example.com    -->  RNAME: john\.doe.example.com.

Managed DNS platforms (including Cloudflare, Amazon Route 53, Google Cloud DNS, GoDaddy, and Namecheap) abstract these raw formatting complexities by incrementing serial numbers and translating administrative email addresses automatically during web console submissions. Understanding raw zone file mechanics clarifies foundational architecture detailed in What Is DNS.

Optimal SOA timer values depend on whether your domain runs on a modern Anycast cloud DNS network (synchronized via internal database replication) or a traditional primary/secondary BIND architecture. The table below compares recommended SOA timer settings across both environments:

SOA Timer Field Traditional Primary/Secondary (RIPE-203 / BIND) Modern Anycast Cloud DNS (Cloudflare / Route 53) Operational Purpose
Refresh 3600 to 86400 s (1 to 24 hours) 7200 to 10000 s (~2 to 3 hours) Polling cadence for secondaries when DNS NOTIFY push fails.
Retry 900 to 7200 s (15 min to 2 hours) 1800 to 2400 s (30 to 40 minutes) Retry delay following failed refresh checks (always < Refresh).
Expire 1209600 to 2419200 s (14 to 28 days) 604800 to 1209600 s (7 to 14 days) Maximum zone service lifetime during primary outages (>= 7 days).
Minimum (Negative TTL) 300 to 3600 s (5 min to 1 hour) 300 to 3600 s (5 min to 1 hour) Cache duration for negative NXDOMAIN and NODATA responses (RFC 2308).

The historical evolution of the 7th SOA field explains common operational confusion. RFC 1035 originally defined MINIMUM as the default zone TTL for records lacking explicit values. RFC 2308 redefined this parameter exclusively as the Negative Caching TTL. Resolvers querying non-existent names (such as missing.example.com) receive an NXDOMAIN answer containing the SOA record in the authority section. Under RFC 2308 Section 3, resolvers cache this negative response for the smaller of the SOA MINIMUM field and the SOA record's own TTL (min(SOA TTL, SOA.MINIMUM)), shielding authoritative nameservers from repeated query floods. Inspect live SOA negative-cache inputs in the DNS TTL checker, balance zone lifetimes in DNS TTL Explained, track propagation velocity in DNS Propagation, and verify query pathways in How DNS Works.

How to Check Your SOA Record and Detect Out-of-Sync Nameservers (dig +nssearch)

Inspection of your domain's live SOA record and verification that every authoritative nameserver serves the exact same zone version (Serial) requires a browser lookup or terminal dig check across 3 diagnostic steps:

  1. Query your domain's SOA record with the +multiline flag in dig (which formats all 7 fields with human-readable comments showing the exact hours and days of each timer) or via nslookup:
    # 1. Inspect formatted SOA record with timer comments on Linux / macOS:
    dig example.com SOA +multiline
    
    # 2. Check that ALL authoritative nameservers have the exact same SOA Serial:
    dig example.com +nssearch
    # Output shows SOA and response time from every NS server in your zone!
    
    # 3. Query SOA record on Windows Command Prompt:
    nslookup -type=soa example.com 1.1.1.1
  2. Audit parent-to-child nameserver delegation and SOA serial agreement in your browser using the DNS Delegation Checker and Nameserver Lookup (Find NS + IPs).
  3. Verify that a recent zone update has incremented the SOA serial across global recursive vantages in the DNS Propagation Checker.

Auditing SOA serial synchronization across every authoritative nameserver confirms operational health throughout the broader collection of DNS Record Types. Every production Start of Authority record (Type 6) anchors zone administration by pairing the primary MNAME host with the administrator RNAME mailbox, advancing monotonically through the YYYYMMDDnn serial format, and governing secondary replication through explicit Refresh, Retry, Expire, and Minimum Negative Cache TTL parameters.

Frequently Asked Questions

How many SOA records can a DNS zone have? ▾

Every DNS zone file has exactly one SOA record, which is always the very first record placed at the zone apex (@). A DNS server refuses to load a zone file that has zero SOA records or more than one SOA record.

Why does the email address in an SOA record (RNAME) use a dot instead of the @ symbol? ▾

In DNS zone file syntax, the @ symbol is a reserved character that stands for the root domain name itself. The SOA RNAME field replaces the @ symbol in the email address with a period (so hostmaster@example.com is written as hostmaster.example.com.) to prevent syntax conflicts with the zone apex.

Do I need to manually update the SOA serial number when I edit DNS records in Cloudflare, Route 53, or GoDaddy? ▾

No, in practice managed web-based DNS providers increment the SOA serial number automatically every time you click Save on a record. You only need to update the YYYYMMDDnn serial number by hand when editing raw text zone files on self-hosted BIND, NSD, or PowerDNS servers.

What happens if my authoritative nameservers show different SOA serial numbers? ▾

In real-world diagnostics, mismatched SOA serial numbers across your nameservers mean a zone transfer (AXFR/IXFR) failed between your primary and secondary servers. Visitors querying an out-of-date secondary server receive stale IP addresses or NXDOMAIN errors until administrators resolve firewall blocks or TSIG misconfigurations and synchronize the zone.

Last verified: 2026-11-28