30 minutes
Record TTL (Time To Live) controls how long DNS clients cache the response. Lower TTL (e.g., 300s) allows faster updates but increases DNS query load. Typical values are 3600s for stable records.
- Resource group: Create new rg-az104-lab16
- Name: contoso-az104lab.com (doesn't need to be a real domain)
- Create.
- Name: www
- Type: A
- TTL: 3600
- IP Address: 203.0.113.10 (a test IP)
- Create.
- Name: app
- Type: CNAME
- TTL: 3600
- Canonical name: www.contoso-az104lab.com
- Create.
- Name: @ (root)
- Type: MX
- TTL: 3600
- Mail exchange: mail.contoso-az104lab.com
- Preference: 10
- Create.
listed (e.g., ns1-07.azure-dns.com, etc.). In a real scenario, you'd
update these NS records at your domain registrar to delegate the domain to
Azure DNS.
- Resource group: rg-az104-lab16
- Name: contoso.internal
- Create.
- Virtual networks > Create. Resource group: rg-az104-lab16,
Name: vnet-dns16, Address space: 10.90.0.0/16,
Subnets: subnet-vms with 10.90.1.0/24. Create.
- Go to contoso.internal > Virtual network links (under Settings) >
+ Add.
- Link name: link-vnet-dns16
- Virtual network: vnet-dns16
- Enable autoregistration: Checked
- Create.
- Virtual machines > Create > vm-dns01, Ubuntu 22.04 LTS,
Standard_B1s, vnet-dns16/subnet-vms. Create.
should automatically appear as vm-dns01 with an A record pointing to
its private IP (e.g., 10.90.1.4).
- Name: db01
- Type: A
- TTL: 3600
- IP Address: 10.90.1.50 (a custom IP for a database server)
- Create.
168.63.129.16).- Set to Custom.
- Add custom DNS server IPs (e.g., 10.90.1.4, 168.63.129.16 for failover).
- Save.
Changing DNS servers requires VMs to restart to pick up new settings — discuss,
no need to apply for this lab.
contoso-az104lab.com has A, CNAME, and MX recordscontoso.internal linked to vnet-dns16 with autoregistration enabledvm-dns01 automatically appears as an A record in the private zonedb01.contoso.internal resolves to 10.90.1.50168.63.129.16 matters when using custom DNS serversrg-az104-lab16 > Delete resource group.168.63.129.16 is a special, platform-wide virtual IP used for communication with Azure platform resources (DNS, health probes, license checks) — keep it in custom DNS configs.