Zones and Zone files

A zone is convenient short-hand for that part of the domain name for which we are configuring the DNS server, for example, BIND and is always an entity for which we are authoritative.

Assume we have a domain name of This is comprised of a domain-name (example) and a gTLD name (com). The zone in this case is If we we have a sub-domain which has been delegated to us called then the zone is

Zones are described in zone files (sometimes called master files and normally located in /var/named) which can contain Directives used by the DNS software, for example, BIND and Resource Records which describe the characteristics of the zone and individual hosts and services within the zone. Both Directives and Resource records are a standard defined by RFC 1035 so can be read by any self-respecting DNS server software. The single exception to this is the BIND-specific $GENERATE directive. So if you think you will change DNS servers don't use $GENERATE.

Example Zone File  IN      SOA
                              2003080800 ; se = serial number
                              3h         ; ref = refresh
                              15m        ; ret = update retry
                              3w         ; ex = expiry
                              3h         ; min = minimum
              IN      NS
              IN      NS
              IN      MX  10
joe           IN      A
www           IN      CNAME   joe 

For a description of what the records mean or to see various sample configurations.

Pro DNS and BIND by Ron Aitchison


tech info
guides home
dns articles
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
5 install bind
6 samples
7 named.conf
8 dns records
9 howtos
10 tools
11 trouble
12 bind api's
13 dns security
bits & bytes
15 messages
notes & tips
registration FAQ
dns resources
dns rfc's
change log

printer friendly

Print Page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2009 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by
web-master at zytrax
Page modified: June 21 2007.