DNS Zones Explained (2024)

What is a DNS Zone?

A DNS zone is a distinct part of the domain namespace which is delegated to a legal entity—a person, organization or company, who are responsible for maintaining the DNS zone. A DNS zone is also an administrative function, allowing for granular control of DNS components, such as authoritative name servers.

When a web browser or other network device needs to find the IP address for a hostname such as “example.com”, it performs a DNS lookup - essentially a DNS zone check - and is taken to the DNS server that manages the DNS zone for that hostname. This server is called the authoritative name server for the domain. The authoritative name server then resolves the DNS lookup by providing the IP address, or other data, for the requested hostname.


DNS Zone Levels

The Domain Name System (DNS) defines a domain namespace, which specifies Top Level Domains (such as “.com”), second-level domains, (such as “acme.com”) and lower-level domains, also called subdomains (such as “support.acme.com”). Each of these levels can be a DNS zone.

For example, the root domain “acme.com” may be delegated to a Acme Corporation. Acme assumes responsibility for setting up an authoritative DNS server that holds the correct DNS records for the domain.

At each hierarchical level of the DNS system, there is a Name Server containing a zone file, which holds the trusted, correct DNS records for that zone.


DNS Root Zone

The root of the DNS system, represented by a dot at the end of the domain name—for example, www.example.com.—is the primary DNS zone. Since 2016, the root zone is overseen by the Internet Corporation for Assigned Names and Numbers (ICANN), which delegates management to a subsidiary acting as the Internet Assigned Numbers Authority (IANA).

The DNS root zone is operated by 13 logical servers, run by organizations like Verisign, the U.S. Army Research Labs and NASA. Any recursive DNS query (learn more about DNS query types) starts by contacting one of these root servers, and requesting details for the next level down the tree—the Top Level Domain (TLD) server.


TLD Zones

There is a DNS zone for each Top Level Domain, such as “.com”, “.org” or country codes like “.co.uk”. there are currently over 1500 top-level domains. Most top-level domains are managed by ICANN/IANA.


Domain Zones

Second-level domains like the domain you are viewing now, “ns1.com”, are defined as separate DNS zones, operated by individuals or organizations. Organizations can run their own DNS name servers, or delegate management to an external provider.

DNS Zones Explained (1)

If a domain has subdomains, they can be part of the same zone. Alternatively, if a subdomain is an independent website, and requires separate DNS management, it can be defined as its own DNS zone. In the diagram above, “blog.example.com” was set up as a DNS zone, whereas “support.example.com” is part of the “example.com” DNS zone.


Secondary DNS Zones

DNS servers can be deployed in a primary/secondary topology, where a secondary DNS server holds a read-only copy of the primary DNS server’s DNS records. The primary server holds the primary zone file, and the secondary server constitutes an identical secondary zone; DNS requests are distributed between primary and secondary servers. A DNS zone transfer occurs when the primary server zone file is copied, in whole or in part, to the secondary DNS server.


All About the DNS Zone File

DNS zone files are defined in RFC 1035 and RFC 1034. A zone file contains mappings between domain names, IP addresses and other resources, organized in the form of resource records (RR).

To see the actual zone file for a domain, and test DNS zone transfers, you can perform a zone file lookup using one of many DNS tools.

DNS Zone Types

There are two types of zone files:

  • A DNS Primary File which authoritatively describes a zone
  • A DNS Cache File which lists the contents of a DNS cache—this is only a copy of the authoritative DNS zone

DNS Zone Records

In a zone file, each line represents a DNS resource record (RR). A record is made up of the following fields:

name

ttl

record class

record type

record data

  • Name is an alphanumeric identifier of the DNS record. It can be left blank, and inherits its value from the previous record.
  • TTL (time to live) specifies how long the record should be kept in the local cache of a DNS client. If not specified, the global TTL value at the top of the zone file is used.
  • Record class indicates the namespace—typically IN, which is the Internet namespace.
  • Record type is the DNS record type—for example an A record maps a hostname to an IPv4 address, and a CNAME is an alias which points a hostname to another hostname.
  • Record data has one or more information elements, depending on the record type, separated by a white space. For example an MX record has two elements—a priority and a domain name for an email server.

Zone File Structure

DNS Zone files start with two mandatory records:

  • Global Time to Live (TTL), which specifies for how records should be kept in local DNS cache.
  • Start of Authority (SOA) record—specifies the primary authoritative name server for the DNS Zone.

After these two records, the zone file can contain any number of resource records, which can include:

  • Name Server records (NS)—specifies that a specific DNS Zone, such as “example.com” is delegated to a specific authoritative name server
  • IPv4 Address Mapping records (A)—a hostname and its IPv4 address.
  • IPv6 Address records (AAAA)—a hostname and its IPv6 address.
  • Canonical Name records (CNAME)—points a hostname to an alias. This is another hostname, which the DNS client is redirected to
  • Mail exchanger record (MX)—specifies an SMTP email server for the domain.


Zone File Tips

  • When adding a record for a hostname, the hostname must end with a period (.)
  • Hostnames which do not end with a period are considered relative to the main domain name—for example, when specifying a "www" or “ftp” record, there is no need for a period.
  • You can add comments in a zone file by adding a semicolon (;) after a resource record.


DNS Zone File Example

$ORIGIN example.com. ; start of the zone file$TTL 30m ; default cache expiration time for resource recordsexample.com. IN SOA ns.example.com. root.example.com. ( 1999120701 ; serial number of this zone file1d ; frequency to refresh secondary DNS (d=day)1d ; frequency to refresh secondary DNS in case of problem4w ; secondary DNS expiration time (w=week)1h ; minimum caching time if resolution failedexample.com. NS dns1.dnsprovider.com. ; there are two name server that can provide DNS services for example.comexample.com. NS dns2.dnsprovider.com.example.com. MX 10 mx1.dnsprovider.com ; mail serverexample.com. MX 10 mx2.dnsprovider.comexample.com. A 192.168.100.1 ; IP address for root domain www A 192.168.100.1 ; IP address for www subdomain

DNS Zones and Next-Generation DNS Services

Traditional DNS infrastructure has its limitations. Once upon a time, an IP address pointed to a single server. Now, one IP address can hide a pool of load balanced network resources, deployed on different data centers across the globe. To serve these resources efficiently to users, ensure high performance and allow quick propagation of changes, you should consider a next-generation DNS provider like NS1.

NS1 Provides:

  • Managed DNS - a DNS service powered by a high-performance, anycast global DNS network, with advanced traffic management features.
  • Dedicated DNS - fully managed DNS deployment, on premise or in the cloud, with advanced point-and-click traffic management

Get a free trial of NS1’s next generation DNS platform and see the difference between first-generation and next-generation DNS technology.


DNS Zones Explained (2024)

FAQs

DNS Zones Explained? ›

A DNS zone is a portion of the DNS namespace that is managed by a specific organization or administrator. A DNS zone is an administrative space which allows for more granular control of DNS components, such as authoritative nameservers. The domain name space is a hierarchical tree, with the DNS root domain at the top.

What are the different DNS zones? ›

There are three types of DNS zones – Primary (Master) DNS zone for control, Secondary (Slave) DNS zone for redundancy and better performance and Reverse DNS zone for network troubleshooting and for email servers IP to validation.

What is a DNS zone for dummies? ›

DNS zones serve as digital boundaries of authority that allow system administrators to manage their respective zones under a specific set of administrative policies, as laid out by a domain registrar or a hosting provider.

What is the difference between a zone and a domain? ›

The distinction between domains and zones is that domains provide a logical structure to the DNS name space while zones provide an administrative structure.

What is primary zone vs secondary zone vs stub zone? ›

In summary, primary zones are read-write copies of zone data and hosted by primary DNS servers, secondary zones contain read-only copies of zone data and are used for load balancing and fault tolerance, and stub zones contain only resource records for the domain's name servers and are used for faster name resolution ...

What DNS should I use in my area? ›

Best Free & Public DNS Servers
  • Google: 8.8.8.8 & 8.8.4.4.
  • Control D: ...
  • Quad9: 9.9.9.9 & 149.112.112.112.
  • OpenDNS: 208.67.222.222 & 208.67.220.220.
  • Cloudflare: 1.1.1.1 & 1.0.0.1.
  • AdGuard DNS: 94.140.14.14 & 94.140.15.15.
  • CleanBrowsing: 185.228.168.9 & 185.228.169.9.
  • Alternate DNS: 76.76.19.19 & 76.223.122.150.
Mar 14, 2024

How do I know my DNS zone? ›

In order to find out the active DNS zone please follow these steps:
  1. Open DNS checker by clicking on this link DNS Checker - DNS Check Propagation Tool.
  2. Enter the name of your domain in search bar.
  3. Under the drop right besides the search bar select NS.
  4. Click on the search button.
Sep 20, 2023

How do you set a DNS zone? ›

To create a DNS zone

In the display pane, click Server Type, and then click DNS. All DNS servers that are managed by IPAM are listed in the search results. Locate the server where you want to add a zone, and right-click the server. Click Create DNS zone.

How many lookup zones are in DNS? ›

There are two Primary zone types that can be set up on a DNS Server—Forward Lookup Zones and Reverse Lookup Zones. Forward Lookup Zones—Forward Lookup Zones allow the DNS Server to resolve queries where the client sends a name to the DNS Server to request the IP address of the requested host.

What is the difference between DNS zone and private DNS zone? ›

Public DNS zones hold the trusted DNS records that will reside on OCIs nameservers. You can create public zones with publicly available domain names reachable on internet. You need to register with a DNS registrar. Private DNS zones contain domain names that resolve DNS queries for private IP addresses within a VCN.

Can a zone be a domain? ›

A "domain" represents the entire set of names / machines that are contained under an organizational domain name. For example, all domain names ending with ".com" are part of the "com" domain. A "zone" is a domain less any sub-domains delegated to other DNS servers (see NS-records).

What is the difference between domain and DNS? ›

The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources.

What is domain DNS zone and forest DNS zone? ›

DNS zone data is stored in an application directory partition. A forest-wide partition named ForestDnsZones is used for the zone data. For each AD DS domain, a domain partition is created named DomainDnsZones. Typically, DNS implementations are used with a contiguous namespace.

What is the purpose of secondary zone? ›

Secondary zone definition

Instead of getting information from local files, secondary zones receive pertinent information from a primary server in a communication process known as a zone transfer. With secondary zones, you can duplicate records from your on-premises DNS server to your DNS Services custom resolver.

What is the secondary zone to SGT? ›

To SGT primary zone: Corporal (CPL) /Specialist (SPC) with minimum 34 months TIS and 10 months TIG. f. To SGT secondary zone: CPL/SPC with minimum 16 months TIS and 4 months TIG.

What is the use of secondary zone? ›

A secondary zone is a read-only copy of the primary zone that is stored on a different server. The secondary zone cannot process updates and can only retrieve updates from the primary zone. Secondary zones are organized within DNS views. For more information on DNS Zones, see Configuring DNS Zones.

What are the 3 levels of DNS? ›

DNS (Domain Name System) is a hierarchical system in which there are different types of DNS servers at each level. These types are Root DNS servers, Top-Level Domain Servers, Authoritative servers and DNS Resolvers.

How many DNS lookup zones are there? ›

There are two Primary zone types that can be set up on a DNS Server—Forward Lookup Zones and Reverse Lookup Zones. Forward Lookup Zones—Forward Lookup Zones allow the DNS Server to resolve queries where the client sends a name to the DNS Server to request the IP address of the requested host.

What are the three main divisions of DNS? ›

TCP/IP protocol DNS is used on several platforms. Country domains, generic domains, and inverse domains are the three divisions of the domain name space.

Top Articles
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5707

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.