SOA record explained

A start of authority record (abbreviated as SOA record) is a type of resource record in the Domain Name System (DNS) containing administrative information about the zone, especially regarding zone transfers. The SOA record format is specified in RFC 1035.

Background

Normally DNS name servers are set up in clusters. The database within each cluster is synchronized through zone transfers. The SOA record for a zone contains data to control the zone transfer. This is the serial number and different timespans.

It also contains the email address of the responsible person for this zone, as well as the name of the primary master name server. Usually the SOA record is located at the top of the zone. A zone without a SOA record does not conform to the standard required by RFC1035.

Structure

NAME: Name of the zone. is a shortcut to match previous record in BIND syntax.
  • CLASS: Zone class (all but universally IN for internet)
  • TYPE: SOA, abbreviation for start of authority
  • TTL: Time-to-live
  • MNAME: Primary master name server for this zone
  • RNAME: Email address of the administrator responsible for this zone. (As usual, the email address is encoded as a name. The part of the email address before the becomes the first label of the name; the domain name after the becomes the rest of the name. In zone-file format, dots in labels are escaped with backslashes; thus the email address john.doe@example.com would be represented in a zone file as john\.doe.example.com.)
  • SERIAL: Serial number for this zone. If a secondary name server slaved to this one observes an increase in this number, the slave will assume that the zone has been updated and initiate a zone transfer.
  • REFRESH: Number of seconds after which secondary name servers should query the master for the SOA record, to detect zone changes. Recommendation for small and stable zones: seconds (24 hours).
  • RETRY: Number of seconds after which secondary name servers should retry to request the serial number from the master if the master does not respond. It must be less than Refresh. Recommendation for small and stable zones: seconds (2 hours).
  • EXPIRE: Number of seconds after which secondary name servers should stop answering request for this zone if the master does not respond. This value must be bigger than the sum of Refresh and Retry. Recommendation for small and stable zones: seconds (hours).
  • MINIMUM: Used in calculating the time to live for purposes of negative caching. Authoritative name servers take the smaller of the SOA TTL and the SOA MINIMUM to send as the SOA TTL in negative responses. Resolvers use the resulting SOA TTL to understand for how long they are allowed to cache a negative response. Recommendation for small and stable zones: seconds (2 days). Originally this field had the meaning of a minimum TTL value for resource records in this zone; it was changed to its current meaning by RFC 2308.
  • Sample SOA record

    Sample SOA record for example.org, in BIND syntax.

    Serial number changes

    See main article: Serial number arithmetic. Several methods have been established for updates to the SERIAL field of a zone's SOA record:

    References

    1. Web site: Bernstein . D.J. . How to run a DNS server in place of an existing BIND server . 2023-03-13.

    [2] [3] [4] [5] [6] [7]