Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read a DNS SOA record?

Tags:

I'm having some trouble reading SOA records. I get the following response after using dig to fetch the SOA record of a domain I'm in control of.

SOA ns1.example.com. xxx.gmail.com. 2013041357 14400 14400 1209600 86400 

How am I supposed to know which value is associated with each field? According to this article a SOA record can have nine fields.

I am imagining that each space signifies the end of a value and I can see that the second value is the email address. But how would I determine which is the refresh value and which is the retry value? They're just numbers with no field names next to them!

Am I missing something here? Thanks in advance.

like image 294
Grenville Avatar asked Apr 13 '13 21:04

Grenville


People also ask

What is a SOA DNS record?

A start of authority (SOA) record is information stored in a domain name system (DNS) zone about that zone and about other DNS records. A DNS zone is the part of a domain for which an individual DNS server is responsible. Each zone contains a single SOA record.

How many SOA records are there for a DNS zone?

Every DNS zone registered in ClouDNS must have an SOA (Start of Authority) record. There is one SOA record per zone.

What is SOA value?

The SOA means Start Of Authority. The SOA record defines the beginning of the authority DNS zone and specifies the global parameters for the zone. These parameters include the primary name server, the email of the domain administrator, the domain serial number, and several timers relating to refreshing the zone.

Is SOA record necessary?

SOA records are mandatory. You have to stuff something in that AUTHORITY section where it is required by RFC if you expect the rest of the internet to play nicely with you. Obviously they aren't really authoritative for co.uk , but this at least tells other nameservers what the negative TTL should be.


1 Answers

If you use +multiline dig parameter, you'll see a more verbose output.

dig SOA +multiline yahoo.com  yahoo.com.      1800 IN SOA ns1.yahoo.com. hostmaster.yahoo-inc.com. (                 2013041300 ; serial                 3600       ; refresh (1 hour)                 300        ; retry (5 minutes)                 1814400    ; expire (3 weeks)                 600        ; minimum (10 minutes)                 ) 
like image 92
Alex Yarmula Avatar answered Sep 29 '22 12:09

Alex Yarmula