
Editing the Configuration Files
|
53
The Primary Zone File
The primary zone file contains the bulk of the configuration information DNS needs.
The format of the file is not standardized, but the elements it contains are specified
by RFC 1035.
If you’re using the set of files the Debian installation provides, you should name your
own primary zone file after your domain. We’ve named the zone file for the central-
soft.org domain pri.centralsoft.org. (The pri prefix will help you recognize that it’s
primary.) We’ll describe each part of the file here; to see it in its entirety, look ahead
to the section “Putting it all together.”
The first lines provide the information needed to sync with your secondary or slave
server(s):
@ IN SOA server1.centralsoft.org. root.localhost. (
2006012103; serial-no
28800; refresh, seconds
7200; retry, seconds
604800; expiry, seconds
86400 ); minimum-TTL, seconds
;
This is an SOA record. SOA is the to Start of Authority, which distinguishes this as
information for authoritative servers (both primary and secondary) as opposed to
caching servers. By the time you write your part of the DNS distributed directory, the
system has handed off authority for your part of the system to you. So your zone file
has to indicate where your authority starts—that is, the domain you are serving.
A semicolon (;) does not mark the end of a line; it just marks the
beginning of a comment. Thus, ...