Name resolution and load balancing
Host public and private DNS in Azure, then spread traffic across VMs with Azure Load Balancer and know when to pick another service.
In this lesson you'll learn
- Azure-provided DNS, Azure DNS public zones and delegation
- Private DNS zones and auto-registration
- Load balancer parts: front end, backend pool, probe and rules
- Choosing between Load Balancer, Application Gateway, Front Door and Traffic Manager
1. Name resolution options
New to DNS? Start here
DNS is the internet's phone book. It turns names like shop.sskaiser.example into IP addresses. A zone holds the records for one domain. Records have types: A maps a name to an IPv4 address, CNAME maps a name to another name, and MX points to mail servers.
| Option | What it does |
|---|---|
| Azure-provided DNS | The default. VMs in the same VNet resolve each other's host names automatically, as vmname.internal.cloudapp.net. It does not work across VNets. |
| Azure DNS public zone | Hosts your internet domain, such as sskaiser.example, on Azure name servers. |
| Azure DNS private zone | Names that resolve only inside linked VNets, such as corp.sskaiser.example. |
| Custom DNS servers | Your own DNS VMs or domain controllers, set in the VNet DNS settings. |
2. Public zones and delegation
Creating a zone in Azure DNS does not make the internet use it. You must delegate the domain: copy the four Azure name servers from the zone's NS record into your domain registrar.
- Create the zone sskaiser.example in Azure DNS.
- Note the four name servers it lists, such as ns1-03.azure-dns.com.
- At the registrar, replace the name servers with those four.
- To delegate a subdomain such as shop.sskaiser.example to another zone, add an NS record named shop in the parent zone.
Exam focus
Alias records point a name directly at an Azure resource, such as a public IP or Front Door, and update automatically if its IP changes. They can also sit at the zone apex, where CNAMEs are not allowed.
3. Private DNS zones
- A VNet can link to many private zones, but it can have auto-registration on one zone only.
- Private endpoints use zones named privatelink.*, so the service name resolves to its private IP.
- For on-premises to resolve Azure private names, use Azure DNS Private Resolver with an inbound endpoint.
4. Azure Load Balancer
New to load balancing? Start here
A load balancer is a traffic officer. Clients connect to one address, and the load balancer sends each connection to a healthy server behind it. If a server fails its health check, it stops getting traffic.
| Component | Purpose |
|---|---|
| Front-end IP | Public for internet traffic, or private for an internal load balancer |
| Backend pool | The VMs or scale set instances that receive traffic |
| Health probe | TCP, HTTP or HTTPS check that decides who is healthy |
| Load-balancing rule | Maps front-end port to backend port, and sets session persistence and floating IP |
| Inbound NAT rule | Forwards one front-end port to one specific VM, for example 50001 to VM1 port 3389 |
| Outbound rule | Configures outbound SNAT for the backend pool |
Example
On Black Friday, one of SS Kaiser's web servers runs out of memory and stops responding. Its HTTP probe on /health fails twice, the load balancer stops sending it traffic, and shoppers never notice. The scale set adds a fresh instance and the probe brings it into rotation.
5. Troubleshooting a load balancer
- Are the probes passing? Check the health probe status metric. A failing probe is the most common cause.
- Does an NSG block the probe? Probes come from 168.63.129.16, the AzureLoadBalancer service tag. Do not deny it.
- Is the app listening? The backend must listen on the probe port and the rule's backend port.
- Are the SKUs consistent? Standard load balancers need Standard public IPs, and the backend must be in one VNet.
- Are clients sticking to one server? Set session persistence to Client IP if users must return to the same VM.
6. Which load balancing service?
| Service | Layer | Scope | Pick it when |
|---|---|---|---|
| Load Balancer | 4 (TCP/UDP) | Regional | Any protocol, high throughput, internal or public |
| Application Gateway | 7 (HTTP) | Regional | URL path routing, TLS termination, web application firewall |
| Front Door | 7 (HTTP) | Global | Worldwide web apps with caching, WAF and fast failover |
| Traffic Manager | DNS | Global | Route users by priority, weight, performance or geography using DNS |
Exam traps to remember
- Basic load balancer was retired in September 2025. Standard requires backends in a single VNet.
- A SQL Always On listener needs floating IP and a TCP probe.
- Auto-registration is limited to one private zone per VNet.
- Delegation happens at the registrar, using the NS records of the Azure zone.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.
Practise in the app