Open D3v0nM opened 5 years ago
# Create a resource group.
az group create \
-n myResourceGroup \
-l eastus
# Create a DNS zone. Substitute zone name "contoso.com" with the values for your own.
az network dns zone create \
-g MyResourceGroup \
-n contoso.com
# Create a DNS record. Substitute zone name "contoso.com" and IP address "1.2.3.4* with the values for your own.
az network dns record-set a add-record \
-g MyResourceGroup \
-z contoso.com \
-n www \
-a 1.2.3.4
# Get a list the DNS records in your zone
az network dns record-set list \
-g MyResourceGroup \
-z contoso.com
Toddy showed me an example of this his machine "should" be around 10 lines of code.