Delegation of DNS zones with Azure DNS

Azure DNS allows you to host a DNS zone and manage the DNS records for a domain in Azure. In order for DNS queries for a domain to reach Azure DNS, the domain has to be delegated to Azure DNS from the parent domain. Keep in mind Azure DNS is not the domain registrar. This article explains how domain delegation works and how to delegate domains to Azure DNS.

How DNS delegation works

Domains and zones

The Domain Name System is a hierarchy of domains. The hierarchy starts from the 'root' domain, whose name is simply '.'. Below this come top-level domains, such as 'com', 'net', 'org', 'uk' or 'jp'. Below these top-level domains are second-level domains, such as '' or ''. And so on. The domains in the DNS hierarchy are hosted using separate DNS zones. These zones are globally distributed, hosted by DNS name servers around the world.

DNS zone - A domain is a unique name in the Domain Name System, for example ''. A DNS zone is used to host the DNS records for a particular domain. For example, the domain '' may contain several DNS records such as '' (for a mail server) and '' (for a website).

Domain registrar - A domain registrar is a company who can provide Internet domain names. They verify if the Internet domain you want to use is available and allow you to purchase it. Once the domain name is registered, you are the legal owner for the domain name. If you already have an Internet domain, you will use the current domain registrar to delegate to Azure DNS.

To find out more information on who owns a given domain name, or for information on how to buy a domain, see Internet domain management in Azure AD.

Resolution and delegation

There are two types of DNS servers:

  • An authoritative DNS server hosts DNS zones. It answers DNS queries for records in those zones only.
  • A recursive DNS server does not host DNS zones. It answers all DNS queries by calling authoritative DNS servers to gather the data it needs.

Azure DNS provides an authoritative DNS service. It does not provide a recursive DNS service. Cloud Services and VMs in Azure are automatically configured to use a recursive DNS service that is provided separately as part of Azure's infrastructure. For information on how to change these DNS settings, see Name Resolution in Azure.

DNS clients in PCs or mobile devices typically call a recursive DNS server to perform any DNS queries the client applications need.

When a recursive DNS server receives a query for a DNS record such as '', it first needs to find the name server hosting the zone for the '' domain. To find the name server, it starts at the root name servers, and from there finds the name servers hosting the 'com' zone. It then queries the 'com' name servers to find the name servers hosting the '' zone. Finally, it is able to query these name servers for ''.

This procedure is called resolving the DNS name. Strictly speaking, DNS resolution includes additional steps such as following CNAMEs, but that's not important to understanding how DNS delegation works.

How does a parent zone 'point' to the name servers for a child zone? It does this using a special type of DNS record called an NS record (NS stands for 'name server'). For example, the root zone contains NS records for 'com' and shows the name servers for the 'com' zone. In turn, the 'com' zone contains NS records for '', which shows the name servers for the '' zone. Setting up the NS records for a child zone in a parent zone is called delegating the domain.

The following image shows an example DNS query. The and are Azure DNS zones.


  1. The client requests from their local DNS server.
  2. The local DNS server does not have the record so it makes a request to their root name server.
  3. The root name server does not have the record, but knows the address of the .net name server, it provides that address to the DNS server
  4. The DNS sends the request to the .net name server, it does not have the record but does know the address of the name server. In this case it is a DNS zone hosted in Azure DNS.
  5. The zone does not have the record but knows the name server for and responds with that. In this case it is a DNS zone hosted in Azure DNS.
  6. The DNS server requests the IP address of from the zone. It contains the A record and responds with the IP address.
  7. The DNS server provides the IP address to the client
  8. The client connects to the website

Each delegation actually has two copies of the NS records; one in the parent zone pointing to the child, and another in the child zone itself. The '' zone contains the NS records for '' (in addition to the NS records in 'net'). These records are called authoritative NS records and they sit at the apex of the child zone.

Next steps

Learn how to delegate your domain to Azure DNS