Delegate an Azure DNS subdomain

You can use the Azure portal to delegate a DNS subdomain. For example, if you own the domain, you can delegate a subdomain called engineering to another, separate zone that you can administer separately from the zone.

If you prefer, you can delegate a subdomain using Azure PowerShell.


To delegate an Azure DNS subdomain, you must first delegate your public domain to Azure DNS. See Delegate a domain to Azure DNS for instructions on how to configure your name servers for delegation. Once your domain is delegated to your Azure DNS zone, you can delegate your subdomain.

Note is used as an example throughout this article. Substitute your own domain name for

Create a zone for your subdomain

First, create the zone for the engineering subdomain.

  1. From the Azure portal, select Create a resource.
  2. In the search box, type DNS, and select DNS zone.
  3. Select Create.
  4. In the Create DNS zone pane, type in the Name text box.
  5. Select the resource group for your zone. You might want to use the same resource group as the parent zone to keep similar resources together.
  6. Click Create.
  7. After the deployment succeeds, go to the new zone.

Note the name servers

Next, note the four name servers for the engineering subdomain.

On the engineering zone pane, note the four name servers for the zone. You will use these name servers later.

Create a test record

Create an A record to use for testing. For example, create a www A record and configure it with a IP address.

Create an NS record

Next, create a name server (NS) record for the engineering zone.

  1. Navigate to the zone for the parent domain.
  2. Select + Record set.
  3. On the Add record set pane, type engineering in the Name text box.
  4. For Type, select NS.
  5. Under Name server, enter the four name servers that you recorded previously from the engineering zone.
  6. Click OK.

Test the delegation

Use nslookup to test the delegation.

  1. Open a PowerShell window.
  2. At command prompt, type nslookup
  3. You should receive a non-authoritative answer showing the address

Next steps

Learn how to configure reverse DNS for services hosted in Azure.