Delegate an Azure DNS subdomain

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

If you prefer, you can also 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. Search for DNS zone and then select Create.

  3. On the Create DNS zone page, select the resource group for your zone. You may want to use the same resource group as the parent zone to keep similar resources together.

  4. Enter for the Name and then select Create.

  5. 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 overview page, note the four name servers for the zone. You'll need these name servers at a later time.

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 at the top of the overview page.

  3. On the Add record set page, type engineering in the Name text box.

  4. For Type, select NS.

  5. Under Name server, enter the four name servers that you noted previously from the engineering zone.

  6. Select OK to save the record.

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.