Zone File

A zone file is a plain text file stored on a name server that contains information about the domains within that name server's zone. It includes contact information about that name server's administrator and lists each domain and subdomain alongside its corresponding IP address. Zone files are a critical part of the Domain Name System infrastructure, allowing computers to locate servers on the Internet at all levels of the DNS system hierarchy.

The DNS system delegates portions of the larger namespace into zones, which may be subdivided into smaller zones. The largest zones cover the entirety of each top-level domain (like .com and .net). Within those are smaller zones managed by other nameservers, which may consist of a single domain (example.com) and its subdomains (mail.example.com) or cover a larger group of multiple domains. Each name server maintains a zone file for the domains within its zone and the corresponding IP address for each domain and subdomain. When another computer on the Internet makes a request to that name server, it checks the zone file and returns the requested domain's IP address.

Zone files store several important pieces of information about a domain. Each zone file begins with one or more directives — lines of text that start with a '$' character and set instructions for the name server to follow, like specifying a TTL expiration timer or an origin domain for relative domain names to follow. Every zone file needs to include a Start of Authority (SOA) record that lists the email address of the name server's administrator, an address for an authoritative master DNS server, and settings for how and when to refresh the zone file's contents. The bulk of a zone file consists of DNS records for domain names and subdomains, matching a specific domain name with the corresponding server's IP address.

Updated December 11, 2023 by Brian P.

quizTest Your Knowledge

What two ports does FTP use?

A
Ports 10 and 11
0%
B
Ports 20 and 21
0%
C
Ports 30 and 31
0%
D
Ports 40 and 41
0%
Correct! Incorrect!     View the FTP definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Zone File on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.