mail us  |  mail this page

products  |  company  |  support  |  training  |  contact us

ZYTRAX OPEN LOGO

Blucat Banner

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

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

example.com.  IN      SOA   ns1.example.com. hostmaster.example.com.(
                              2003080800 ; se = serial number
                              3h         ; ref = refresh
                              15m        ; ret = update retry
                              3w         ; ex = expiry
                              3h         ; min = minimum
                              )
              IN      NS      ns1.example.com.
              IN      NS      ns2.example.com.
              IN      MX  10  mail.anotherdomain.com.
joe           IN      A       192.168.254.3
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

Contents

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

Creative Commons License
This work is licensed under a Creative Commons License.

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Firefox

web zytrax.com

Share Page

share page via facebook tweet this page submit page to stumbleupon submit page to reddit.com

Page Features

Page comment feature Send to a friend feature print this page Decrease font size Increase font size

RSS Feed Icon RSS Feed

Resources

Systems

FreeBSD
NetBSD
OpenBSD
DragonFlyBSD
Linux.org
Debian Linux

Applications

LibreOffice
OpenOffice
Mozilla
SourceForge
GNU-Free SW Foundation

Organisations

Open Source Initiative
Creative Commons

Misc.

Ibiblio - Library
Open Book Project
Open Directory
Wikipedia

SPF Resources

Draft RFC
SPF Web Site
SPF Testing
SPF Testing (member only)

Display full width page Full width page

Print this page Print this page

SPF Record Conformant Domain Logo

Copyright © 1994 - 2014 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
Hosted by super.net.sg
web-master at zytrax
Page modified: September 18 2013.