Here is an example:
Click here to view code image
example.com. IN NS ns1.domainregistrationcompany.com.
The domain comes first, again with a dot at the end. This is followed by IN
for Internet and NS for name server. At the end, the name server is listed,
again with a dot at the end.
SOA
A start of authority, or SOA, record specifies the DNS server that provides
authoritative information about a domain, the email address of the domain
administrator, the domain serial number, and configuration for timers related
to refreshing the zone. This is a vital part of the zone file. Here is an example:
Click here to view code image
; name TTL class rr Nameserver email-address
example.com. 14400 IN SOA ns.mydomainnameserver.com.
root.ns.mydomainnameserver.com. (
2018080600 ; serial number
86000 ; refresh rate in seconds
7200 ; update retry in seconds
3600000 ; expiration in seconds
600 ; minimum in seconds )
In this file, a semicolon denotes the beginning of a comment, so everything
after it is ignored by the system and is intended only for humans reading the
file. The first line reminds you how to format the next line. Everything else in
the file is contained in the parentheses, the first of which must be on the first
line.
This example uses example.com as the domain. Remember the dot at the
end.
14400 is the TTL, or time in seconds that you are allowing the record to be
cached by other servers before they have to submit a query again. If set to 0 ,
it is not permitted to be cached at all.
IN is the class or type of the record—in this case, Internet. No other options
are in use any more.
SOA denotes this is a start of authority record.
This example uses ns.mydomainnameserver.com as the sample
domain of the DNS server. Replace this with your DNS server’s domain and
remember the dot at the end.