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: