0
0
Azurecloud~10 mins

Azure DNS basics - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Azure DNS basics
Create DNS Zone
Add DNS Records
DNS Zone Hosted in Azure
Clients Query DNS
Azure DNS Resolves Queries
Clients Get IP Addresses
This flow shows how you create a DNS zone in Azure, add records, and how clients query Azure DNS to get IP addresses.
Execution Sample
Azure
az network dns zone create -g MyResourceGroup -n example.com
az network dns record-set a add-record -g MyResourceGroup -z example.com -n www -a 10.1.2.3
Creates a DNS zone named example.com and adds an A record for www.example.com pointing to IP 10.1.2.3.
Process Table
StepActionResource GroupDNS ZoneRecord SetRecord TypeRecord ValueResult
1Create DNS ZoneMyResourceGroupexample.com---DNS zone example.com created
2Add A RecordMyResourceGroupexample.comwwwA10.1.2.3A record www.example.com -> 10.1.2.3 added
3Client DNS Query-example.comwwwA-Azure DNS returns 10.1.2.3
4Client DNS Query-example.commailA-No record found, NXDOMAIN returned
💡 Execution stops after client queries show how Azure DNS resolves or fails to resolve records.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4
DNS ZoneNoneexample.com createdexample.com existsexample.com existsexample.com exists
Record Set wwwNoneNoneA record with IP 10.1.2.3A record with IP 10.1.2.3A record with IP 10.1.2.3
Record Set mailNoneNoneNoneNoneNone
Key Moments - 3 Insights
Why does the client get NXDOMAIN for mail.example.com?
Because no A record was added for 'mail' in the DNS zone, Azure DNS returns NXDOMAIN as shown in execution_table step 4.
What happens if you create a DNS zone but add no records?
Clients querying any record will get NXDOMAIN because no records exist, similar to step 4 in the execution_table.
Does creating a DNS zone automatically create records?
No, creating a DNS zone only sets up the container. Records must be added separately as shown in step 2.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what IP address does Azure DNS return for www.example.com at step 3?
A10.0.0.1
BNXDOMAIN
C10.1.2.3
DNo response
💡 Hint
Check the 'Record Value' and 'Result' columns in step 3 of execution_table.
At which step does the DNS zone example.com get created?
AStep 2
BStep 1
CStep 3
DStep 4
💡 Hint
Look at the 'Action' column in execution_table for when the DNS zone is created.
If you add an A record for mail.example.com with IP 10.2.3.4, what changes in variable_tracker after step 4?
ARecord Set mail changes from None to A record with IP 10.2.3.4
BDNS Zone changes from example.com to None
CRecord Set www changes to None
DNo changes occur
💡 Hint
Refer to the 'Record Set mail' row in variable_tracker to see how records update.
Concept Snapshot
Azure DNS basics:
- Create a DNS zone to hold your domain records.
- Add DNS records (A, CNAME, etc.) to the zone.
- Azure DNS hosts the zone and answers queries.
- Clients query Azure DNS to resolve domain names to IPs.
- No records means queries return NXDOMAIN.
Full Transcript
This visual execution shows how Azure DNS works step-by-step. First, you create a DNS zone in a resource group. Then you add DNS records like A records to that zone. Azure DNS hosts the zone and answers client queries. When a client asks for www.example.com, Azure DNS returns the IP address from the A record. If a record does not exist, Azure DNS returns NXDOMAIN. Variables track the DNS zone and records state after each step. Key moments clarify common confusions about missing records and zone creation. The quiz tests understanding of the DNS zone creation, record addition, and query results.