Category: 

What is a Zone File?

Article Details
  • Written By: J. Stanley
  • Edited By: C. Wilborn
  • Last Modified Date: 26 September 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
Built at the request of Dag Hammarskjöld, the United Nations Headquarters has a meditation room dedicated to silence.   more...

October 1 ,  1890 :  Yosemite National Park was established.  more...

A zone file is a text document used by the domain name system (DNS) to map computers, domain names, and various resources to the appropriate Internet Protocol (IP) addresses. This mapping allows people to access resources and computers on the Internet using human-readable addresses. Zone files generally consist of two parts: directives and resource records.

Directives begin with a dollar sign, and include information that applies to the entire zone file, such as its time to live ($TTL). TTL is the default amount of time a name server should consider downloaded zone file information valid before checking for updates. For example, if the $TTL is set to 86,400 seconds (24 hours), a name server accessing that zone file will store a copy of it for 24 hours before attempting to look for an updated version. Note that individual resource records may include unique TTL information that overrides this default value.

Other common directives include $ORIGIN, which sets the default domain name for all hosts included in the zone file, and $INCLUDE, which allows a zone file to include the contents of other text files. Using $INCLUDE files gives administrators the ability to logically organize and separate a zone file’s resource records. This prevents the need to add hundreds of entries to a single file.

Ad

Resource records are the zone file entries that define DNS information about a specific host or resource. While there are dozens of types of resource records defined by the Internet Engineering Task Force (IETF), the most commonly used are:

  • A record – An Internet Protocol version 4 (IPv4) address record. These records map specific hosts to their assigned IP addresses.
  • MX record – A mail exchange record. MX records list the name of the mail servers for this DNS zone. A zone file can contain multiple MX records, each with a specified preference relative to each other.
  • CNAME record – Canonical name record. CNAME records are similar to A records, but are used to map one name to another name instead of to an IP address.
  • NS record – Name server records. These records define which name servers are authoritative for the domain referenced by the zone file.
  • SOA record – Start of authority record. SOA records define parameters that affect the entire zone. These records are essential for the DNS to work properly, especially zone file transfers between primary and secondary DNS servers.

An SOA record lists, among other information, the root domain name for the zone, the serial number for the zone file, and the refresh interval. The refresh interval is the amount of time secondary DNS servers will let pass before attempting to copy the zone file from the primary server. Secondary DNS servers use the serial number to determine whether the copy they already have is the most up-to-date version.

Ad

You might also Like

Recommended

Discuss this Article

Post your comments

exception 'Exception' with message 'error writing captcha: Duplicate entry '2147483647' for key 'PRIMARY'' in /ssd/www/wisegeek/public_html/_core/classes/public/Captcha.php:44
Stack trace:
#0 /ssd/www/wisegeek/public_html/_core/controls/public/ControlDiscussionPostBox.php(324): Captcha->createCaptcha()
#1 /ssd/www/wisegeek/public_html/framework/classes/Control.php(104): ControlDiscussionPostBox->preRender(false)
#2 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): Control->render()
#3 /ssd/www/wisegeek/public_html/tpl/default-nocustom-lu/pages/public/article/article.htm(526): Control->__toString()
#4 /ssd/www/wisegeek/public_html/framework/classes/Control.php(300): require('/ssd/www/wisege...')
#5 /ssd/www/wisegeek/public_html/framework/classes/Control.php(309): Control->requireTpl('pages/public/ar...', Object(PageArticleCom), true)
#6 /ssd/www/wisegeek/public_html/framework/classes/Control.php(131): Control->renderTpl('pages/public/ar...', Object(PageArticleCom))
#7 /ssd/www/wisegeek/public_html/framework/classes/FormDataControl.php(87): Control->renderTemplate()
#8 /ssd/www/wisegeek/public_html/framework/classes/Control.php(109): FormDataControl->renderTemplate()
#9 /ssd/www/wisegeek/public_html/framework/classes/ScriptPage.php(50): Control->render(false)
#10 /ssd/www/wisegeek/public_html/framework/classes/Control.php(149): ScriptPage->render()
#11 /ssd/www/wisegeek/public_html/framework/classes/Page.php(97): Control->__toString()
#12 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(443): Page->processRequest()
#13 /ssd/www/wisegeek/public_html/_core/classes/public/PublicFrontController.php(7): PublicFrontController->renderPage()
#14 /ssd/www/wisegeek/public_html/index.php(11): PublicFrontController::run()
#15 {main}