Name resolution and load balancing

AZ-104 Azure AdministratorNetworkingAbout 25 minutesBy Cloud Hands On

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

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.

OptionWhat it does
Azure-provided DNSThe 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 zoneHosts your internet domain, such as sskaiser.example, on Azure name servers.
Azure DNS private zoneNames that resolve only inside linked VNets, such as corp.sskaiser.example.
Custom DNS serversYour 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.

  1. Create the zone sskaiser.example in Azure DNS.
  2. Note the four name servers it lists, such as ns1-03.azure-dns.com.
  3. At the registrar, replace the name servers with those four.
  4. 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 private zone linked to two VNets, one with auto-registration Private zonecorp.sskaiser.example Hub VNetlink with auto-registration Spoke VNetlink, resolution only
Auto-registration creates A records for VMs as they are created and removes them when the VMs are deleted.
  • 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.

Clients reach a front-end IP. A rule sends port 443 to a backend pool of three VMs, with a health probe checking each one. Clients Load balancer Front end: public IPRule: TCP 443 to 443Probe: HTTP /healthevery 5 seconds web-vm1, healthy web-vm2, healthy web-vm3, probe failing Backend pool
web-vm3 is taken out of rotation until its probe passes again.
ComponentPurpose
Front-end IPPublic for internet traffic, or private for an internal load balancer
Backend poolThe VMs or scale set instances that receive traffic
Health probeTCP, HTTP or HTTPS check that decides who is healthy
Load-balancing ruleMaps front-end port to backend port, and sets session persistence and floating IP
Inbound NAT ruleForwards one front-end port to one specific VM, for example 50001 to VM1 port 3389
Outbound ruleConfigures 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

  1. Are the probes passing? Check the health probe status metric. A failing probe is the most common cause.
  2. Does an NSG block the probe? Probes come from 168.63.129.16, the AzureLoadBalancer service tag. Do not deny it.
  3. Is the app listening? The backend must listen on the probe port and the rule's backend port.
  4. Are the SKUs consistent? Standard load balancers need Standard public IPs, and the backend must be in one VNet.
  5. 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?

ServiceLayerScopePick it when
Load Balancer4 (TCP/UDP)RegionalAny protocol, high throughput, internal or public
Application Gateway7 (HTTP)RegionalURL path routing, TLS termination, web application firewall
Front Door7 (HTTP)GlobalWorldwide web apps with caching, WAF and fast failover
Traffic ManagerDNSGlobalRoute 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

Keep going