MerryFairyTalesAD440 / Builds

AD440 Section 2349 (Tuesday)
GNU General Public License v3.0
0 stars 0 forks source link

Research Scripts for Azure DNS #23

Open D3v0nM opened 5 years ago

D3v0nM commented 5 years ago

Toddy showed me an example of this his machine "should" be around 10 lines of code.

ghost commented 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