AZ-104 Azure DNS Explained: Zones, Records, 168.63.129.16, and Private DNS Auto-Registration
Study Guide: Azure DNS (AZ-104 Networking Fundamentals)
1) What DNS is
DNS (Domain Name System) is the “phonebook” of the internet and private networks.
- Humans prefer names like
app.contoso.com - Computers route using IP addresses like
10.0.0.5or20.x.x.x - DNS translates name → IP (and sometimes IP → name)
FQDN (Fully Qualified Domain Name) is the complete name, for example:www.mydemystify.com
2) DNS hierarchy (how the internet resolves names)
DNS runs in a hierarchy:
- Root (.)
- TLD (Top-Level Domain) like
.com,.net - Authoritative DNS for the domain (where your zone lives)
When a user queries www.contoso.com, the resolver typically:
- Contacts Root to find who handles
.com - Contacts the .com servers to find who handles
contoso.com - Contacts the authoritative DNS for
contoso.comto get the record forwww
3) Domain registrars vs DNS hosting
A domain registrar is where you buy/manage the domain name (examples: GoDaddy, Namecheap).
Azure DNS is a DNS hosting service, not a registrar.
Key point for exams
- You cannot buy domains from Azure DNS.
- You buy the domain from a registrar, then point the domain’s name servers to Azure DNS.
4) Azure DNS record basics
A DNS zone is a container for records for a domain (like contoso.com).
Common record types you’ll see:
- A: name → IPv4 address
- AAAA: name → IPv6 address
- CNAME: alias name → another name
- TXT: verification, SPF, etc.
- MX: mail routing
5) Public DNS zones vs Private DNS zones
Public DNS zone
Use when the internet needs to resolve your names.
- Example:
www.contoso.comshould resolve publicly.
Typical flow
- Create Public DNS zone in Azure
- Azure gives you name servers
- Update the registrar to use Azure DNS name servers
- Create record sets (A/CNAME/etc.)
Private DNS zone
Use when you want internal name resolution inside Azure VNets (and possibly hybrid networks).
- Example:
sql.internal.contoso.comresolves only inside your network.
Key setup
- Create Private DNS zone
- Link it to a Virtual Network
- Optionally enable auto-registration (VM hostnames auto-create DNS records in the private zone)
6) Split-horizon (same name, different answers)
A common design is to have:
- A Public zone for
contoso.com(public answers) - A Private zone for
contoso.com(private answers)
This is often referred to as split-horizon DNS:
- Internal clients (in linked VNets) resolve the private zone
- External clients resolve the public zone
7) The Azure DNS “special IP”: 168.63.129.16
In many Azure VM configurations you’ll see DNS server 168.63.129.16 in ipconfig /all.
This is a platform virtual IP used by Azure for services like:
- DNS resolution (Azure-provided DNS)
- DHCP-related platform functions
Exam take: Don’t block it casually. It can break core VM networking behaviors.
8) Custom domain for a website (high-level Azure steps)
If you want to use a custom domain (example: www.contoso.com) with an Azure-hosted app:
- Create a Public DNS zone in Azure.
- Add the needed record(s):
- Often CNAME
www→ your Azure endpoint - Or A/ALIAS to an Azure public IP / supported Azure resource target
- Often CNAME
- Verify domain ownership if required (often via TXT record).
- Bind the custom domain in the service (App Service, Front Door, etc.).
Practice Questions (with Answers and Explanations)
Questions
- (MCQ) What is the primary purpose of DNS?
A. Encrypt traffic between clients and servers
B. Translate domain names into IP addresses
C. Block inbound traffic by default
D. Assign IP addresses to VMs - (Short answer) What does FQDN stand for, and give an example.
- (MCQ) Which order best represents the public DNS hierarchy resolution path?
A. TLD → Root → Domain
B. Root → TLD → Domain authoritative DNS
C. Domain → Root → TLD
D. Root → Domain → TLD - (True/False) You can purchase a domain name directly from Azure DNS.
- (Scenario) You bought
contoso.comfrom Namecheap and created a public DNS zone in Azure DNS. What must you change at the registrar to make Azure DNS authoritative? - (MCQ) What is a DNS Zone?
A. A firewall policy
B. A container that holds DNS records for a domain
C. A VPN tunnel configuration
D. A subnet routing table - (MCQ) Which record type maps a hostname to an IPv4 address?
A. CNAME
B. A
C. MX
D. TXT - (MCQ) Which record type is best for pointing
www.contoso.comto another hostname likecontoso.azurewebsites.net?
A. A
B. TXT
C. CNAME
D. MX - (Short answer) When do you use a Public DNS zone vs a Private DNS zone?
- (True/False) Private DNS zones can be linked to VNets for internal name resolution.
- (Scenario) You create a Private DNS zone
internal.contoso.combut VMs in your VNet cannot resolve names in it. What is the most likely missing step? - (MCQ) “Split-horizon DNS” usually means:
A. Two subnets with different route tables
B. Same DNS name returns different answers depending on where the query originates
C. DNS only works over ExpressRoute
D. DNS is replaced by IPAM - (Scenario) You want VM host records to be created automatically in a Private DNS zone when VMs are created. What should you enable?
- (Short answer) What is the significance of 168.63.129.16 on Azure VMs?
- (Calculation) A DNS record TTL is set to 3600 seconds. How many minutes is that?
- (Scenario) You need
contoso.comto resolve publicly to a public endpoint, but inside Azure you wantcontoso.comto resolve to private IPs. What DNS zone design supports this?
Answers + Explanations
- B. DNS resolves names to IP addresses.
- Fully Qualified Domain Name, example:
www.contoso.com. - B. Root → TLD → authoritative DNS for the domain.
- False. Azure DNS hosts zones but does not sell domains.
- Update Name Server (NS) settings at the registrar to the Azure DNS name servers for the zone.
- B. A zone holds record sets for a domain.
- B. A records map name → IPv4.
- C. CNAME maps name → another name.
- Public for internet resolution, Private for internal resolution within VNets (and linked networks).
- True. That’s how private name resolution is enabled for VNets.
- Link the Private DNS zone to the Virtual Network (Virtual network link).
- B. Same name, different answers depending on internal vs external.
- Enable auto-registration on the Private DNS zone’s VNet link.
- It’s an Azure platform virtual IP commonly used for Azure-provided DNS and platform networking functions.
- 3600 seconds ÷ 60 = 60 minutes.
- Use split-horizon: create both a Public and a Private DNS zone for the same domain name, and link the private zone to the VNet.
