O'Reilly logo

Hands-On Networking with Azure by Mohamed Waly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring Azure DNS delegation using Azure CLI 2.0

To retrieve the NS records of the DNS zone to add them to the third-party domain registrar, you need to run the following command:

az network dns record-set list --resource-group PacktPub --zone-name Gamezakhana.com --type NS --name @

To do the delegation for a subdomain, you need to create a child zone, as you've learned earlier.

Then, retrieve the child name servers by running the previous command for the child zone. After that, create a record set for name servers by running the following command:

az network dns record-set ns create --resource-group PacktPub --zone-name Gamezakhana.com --name child

Finally, create an NS record by running the following command for each name server:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required