Hello. This is Saito from ICT Link.
I recently performed a DNS record migration. While doing so, I felt that although I frequently see A records and MX records, I don't usually pay much attention to SOA records.
However, there are times when you need to check the contents of an SOA record during DNS migrations or when name resolution issues occur.
Taking this opportunity to study SOA records, I would like to re-understand what they actually represent, as I only had a vague idea of their existence.
In this article, I will organize the role of SOA records and the points to check in practical work.
What is an SOA record?In short, an SOA (Start of Authority) record is a record that holds management information for a DNS zone. It registers important information regarding a domain or zone, such as the administrator's email address, when the domain was last updated, and the time a server should wait between updates.
An example of the settings is provided below.
$ dig example.com SOA
example.com. 3600 IN SOA ns1.example.com. admin.example.com. (
2026010101 ; serial
3600 ; refresh
900 ; retry
1209600 ; expire
3600 ; minimum
)Here is a brief explanation of each item.
・Primary NS: Master DNS for zone management
・Admin Mail: Administrator email address
・Serial: Version of the zone data
・Refresh: Resynchronization check interval
・Retry: Retry interval
・Expire: Data expiration time
・Minimum: Negative caching time
I think the one you see most often in practice is the "Serial".
I wrote that it is the "version of the zone data," but this value is a number that is updated (incremented by 1) whenever DNS settings are changed.
Secondary DNS servers recognize whether DNS information has been updated by checking the "Serial" value.
If you are planning to migrate DNS information yourself, checking the SOA record makes it easier to grasp the migration status.
If the result of running "dig [target domain] SOA" refers to the DNS service before migration, you can judge that the migration is still in progress,
and if you can confirm that this result refers to the DNS service after migration, you can judge that the migration is complete at that point.
Referring to the previous setting example, if you were to actually use dig, it would look like the following.
dig example.com SOA
This is also an example, but it returns something like the following.
$ dig example.com SOA ; <<>> DiG 9.18.1 <<>> example.com SOA ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12345 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;example.com. IN SOA ;; ANSWER SECTION: example.com. 3600 IN SOA ns1.example.com. admin.example.com. 2026010101 3600 900 1209600 3600 ;; Query time: 20 msec ;; SERVER: 192.168.1.1#53(192.168.1.1) ;; WHEN: Wed Jul 29 06:58:00 JST 2026 ;; MSG SIZE rcvd: 95
You just need to check the ;; ANSWER SECTION: part, and if the original SOA information has been rewritten to the post-change information, then it is OK.
Even records that we find difficult to perceive can be very useful information depending on the situation.
・The serial number is the version control number for DNS data
・It can be used to verify the authoritative DNS
・It is useful for investigations during DNS migration and verification of propagation
When handling DNS-related tasks, it might be good to keep these three points in mind while conducting investigations or work.
See you next time.