SOA record

SOA Record Explained: Serial, Refresh, Retry, and Expire

Every DNS zone has a Start of Authority, or SOA, record. It does not point visitors to a web server like an A or AAAA record, but it provides essential administrative and timing information about the zone. Secondary DNS servers use several of its values to decide when to check for updates, retry a failed transfer, or stop serving an outdated copy.

Understanding the SOA record is especially useful when troubleshooting delayed DNS changes, secondary server synchronization, and inconsistent answers between authoritative nameservers.

The Primary Server and Responsible Contact

The first SOA field, often called MNAME, identifies the primary authoritative nameserver for the zone. This is normally the server from which secondary servers obtain updated zone data. It should contain a fully qualified domain name, not an IP address.

The RNAME field represents the mailbox of the person responsible for the zone. In DNS zone-file notation, the first dot replaces the @ symbol. For example, hostmaster.example.com. represents hostmaster@example.com. An escaped dot is needed if the mailbox name itself contains a dot.

The Serial Number Tracks Zone Versions

The serial number identifies the current version of the zone. When a secondary nameserver checks the primary and finds a newer serial, it knows that it should request updated data. A zone change without a corresponding serial increase can therefore leave secondary servers serving old records.

Many systems manage the serial automatically. Where it is maintained manually, a date-based format such as YYYYMMDDnn is easy for administrators to read, but the important requirement is that each new version compares as newer according to DNS serial-number rules.

Refresh, Retry, and Expire Control Synchronization

The refresh value tells secondary servers how long to wait before checking the primary for a new serial. If that check fails, the shorter retry interval determines when they try again. The expire value sets the maximum time a secondary may continue serving the zone without successfully contacting the primary.

These values balance update speed, query traffic, and resilience. A very long refresh interval can delay propagation to secondary servers, while an unnecessarily short interval creates frequent checks. The practical ClouDNS guide to SOA records describes each configurable field and its role.

If you operate multiple authoritative servers, our explanation of Secondary DNS and backup nameservers shows why reliable synchronization matters during outages.

SOA TTL and Negative Caching

The record also includes timing information used when resolvers cache negative answers, such as a response stating that a requested name does not exist. An excessive negative caching period can make a newly created hostname appear unavailable for longer, even when the new record is already present on authoritative servers.

This is related to, but different from, the TTL applied to ordinary records. Our guide to choosing DNS TTL values explains how cached positive answers affect migrations and planned changes.

Check the SOA Record From the Command Line

You can inspect a zone with dig example.com SOA. Compare the response from each authoritative nameserver and confirm that serial numbers match after a change. Persistent differences usually indicate a transfer problem, an unreachable primary server, or incorrect zone configuration.

For the formal SOA field layout and protocol definitions, consult Section 3.3.13 of RFC 1035. A correctly maintained SOA record gives authoritative servers a shared view of zone state and makes DNS updates more predictable.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *