Configure name resolution and load balancing
Host public and private DNS zones in Azure DNS, and spread traffic with internal and public load balancers.
- 15 min
- 3 concepts
- Try it yourself
- 5-question check
Learn
Azure DNS hosts your DNS zones on Microsoft's global name servers. Public zones answer the internet; private zones answer only the VNets you link them to.
Azure Load Balancer spreads TCP and UDP traffic across healthy back-end VMs. For AZ-104 you need to know how to build one and how it differs from the other load-balancing services.
- 1
Configure Azure DNS
A public DNS zone hosts records for a domain you own, such as
contoso.com. After creating it, update the domain's NS records at your registrar to point to the four Azure name servers. Azure DNS doesn't sell domain names.A private DNS zone resolves names inside VNets you link to it. With auto-registration on a link, VMs in that VNet get records created automatically. Record types include A, AAAA, CNAME, MX, TXT, SRV and PTR, and alias records point at Azure resources so they update when the resource's IP changes.
Remember: Public zone: change the NS records at the registrar. Private zone: link it to the VNets.
- 2
Configure an internal or public load balancer
A load balancer has a front-end IP (public for internet traffic, private for an internal load balancer), a back-end pool of VMs or scale set instances, health probes that check which instances are healthy, and load-balancing rules that map a front-end port to a back-end port.
Use the Standard SKU: it's zone-redundant, secure by default and has an SLA. Basic Load Balancer retired on 30 September 2025. Inbound NAT rules forward a port to one specific VM.
Remember: No healthy probe response, no traffic to that instance.
- 3
Troubleshoot load balancing
Most problems are health probes failing, often because the app isn't listening on the probe port or an NSG blocks the probe. Probes come from the
AzureLoadBalancerservice tag (168.63.129.16), which the default NSG rules allow.Check the back-end pool members, the rule's ports, the VMs' NSGs, and the load balancer's metrics such as health probe status and data path availability in Insights.
Remember: Standard load balancer back-ends need an NSG that allows the traffic in.
Azure load-balancing services
| Service | Layer | Scope | Typical use |
|---|---|---|---|
| Azure Load Balancer | 4 (TCP/UDP) | Regional | VMs and scale sets, any TCP or UDP app |
| Application Gateway | 7 (HTTP/S) | Regional | Web apps, path routing, WAF |
| Azure Front Door | 7 (HTTP/S) | Global | Global web apps, CDN, WAF |
| Traffic Manager | DNS | Global | Route users to regions by DNS |
Try it
Answer the questions to pick the right load-balancing service.
This interactive part needs JavaScript.
In the portal
- Create a DNS zoneAzure portal: DNS zones > Create
- Link a private zone to a VNetAzure portal: Private DNS zones > your zone > DNS Management > Virtual Network Links
- Create a load balancerAzure portal: Load balancers > Create
- Health probesAzure portal: Load balancers > your load balancer > Settings > Health probes
Key terms
Click a card to see the definition.
Check your understanding
5 questions. Score 80% or more and these skills are marked as confident in your AZ-104 study plan.
You created a public DNS zone for contoso.com in Azure. What must you do at the registrar?
Delegation is done with NS records. Azure DNS doesn't register domains.
VMs in a VNet should get DNS records created for them automatically. What do you turn on?
Auto-registration creates and removes records as VMs come and go.
Which service load-balances HTTP traffic with path-based routing in one region?
Application Gateway is regional layer 7.
A load balancer sends no traffic to a VM. What's the most likely cause?
Instances that fail probes are taken out of rotation.
Which load balancer front end is used for traffic only from inside the VNet?
Internal load balancers use a private front-end IP.
Sources
- Microsoft Learn: What is Azure DNS?
- Microsoft Learn: What is a private Azure DNS zone?
- Microsoft Learn: What is Azure Load Balancer?
- Microsoft Learn: Azure Load Balancer health probes
- Microsoft Learn: Load-balancing options
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.