Delegate an Azure DNS subdomain
You can use the Azure portal to delegate a DNS subdomain. For example, if you own the contoso.com domain, you can delegate a subdomain called engineering to another, separate zone that you can administer separately from the contoso.com 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.
Contoso.com is used as an example throughout this article. Substitute your own domain name for contoso.com.
Create a zone for your subdomain
First, create the zone for the engineering subdomain.
- From the Azure portal, select Create a resource.
- In the search box, type DNS, and select DNS zone.
- Select Create.
- In the Create DNS zone pane, type engineering.contoso.com in the Name text box.
- 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.
- Click Create.
- 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 10.10.10.10 IP address.
Create an NS record
Next, create a name server (NS) record for the engineering zone.
- Navigate to the zone for the parent domain.
- Select + Record set.
- On the Add record set pane, type engineering in the Name text box.
- For Type, select NS.
- Under Name server, enter the four name servers that you recorded previously from the engineering zone.
- Click OK.
Test the delegation
Use nslookup to test the delegation.
- Open a PowerShell window.
- At command prompt, type
- You should receive a non-authoritative answer showing the address 10.10.10.10.
Learn how to configure reverse DNS for services hosted in Azure.