Creating a DNS zone is quite a simple process that you can learn by going through the following steps:
- To create a DNS zone, run the following command. It is a pretty simple one as it only requires you to pass the resource group name and the zone name:
$ az network dns zone create -g myResourceGroup -n zoneName
- The result will be similar to the following output. Besides the common fields, it will contain the name servers, which is important if you want to register a specific domain for that zone:
{
"id": "...",
"location": "global",
"maxNumberOfRecordSets": 5000,
"name": "azureadministrator.com",
"nameServers": [
"ns1-06.azure-dns.com.",
...
],
"resourceGroup": "azureadministrator-euw-rg",
"type": "Microsoft.Network/dnszones",
"zoneType": "Public"
}
- In my particular case, I used azureadministrator...