Skip to content
CAMPUX
Field notes · Networking
Azure DNS

Azure DNS: hosting the phone book, public and private

By 6 min read

Every connection your systems make starts with a question: what IP address is this name? Answering that question, reliably and fast, for both the public internet and the private world inside your virtual network, is the entire job of Azure DNS — and it is astonishing how many "the network is down" incidents are really "the name did not resolve" in a trench coat.

New to cloud? CAMPUX is a free, build-first course. Start here →

The Domain Name System is the internet's phone book: it "translates (resolves) a service name to an IP address." Azure DNS is Microsoft's managed service for hosting your DNS zones and answering those lookups, using Azure's global network of name servers. You bring your domain and your records; Azure runs the highly available infrastructure that serves them. No DNS servers to patch, no zone files to hand-edit on a box at 3am.

Hosting is not registering — keep them straight

The first thing to get right, because it trips people up constantly: Azure DNS hosts domains, it does not register them. Registering yourcompany.com, claiming the name, is what you do at a domain registrar. Hosting it is running the name servers that answer questions about that name. You register the domain somewhere, then point it at Azure DNS by delegating it, and from then on you manage your records (the A records, CNAMEs, MX, TXT) in Azure with the same credentials, APIs, tools, and billing as the rest of your Azure estate. That last part is the quiet win: your DNS stops being a separate silo with its own login.

Azure DNS answers name queries authoritatively for your zone, returning the record set you configured.browserapp.contoso.com?Azure DNSzone: contoso.comauthoritative NSname?the IPRECORD SETSA → 20.1.2.3CNAME → cdn…MX → mailTXT → spf…Azure DNS is the authoritative source for your zone — it answers with the record you set
Figure — Azure DNS hosts your domain's zone and answers as the authoritative source for it. A resolver asks for a name (app.contoso.com); Azure DNS looks up the matching record set — an A record to an IP, a CNAME to another name, MX for mail, TXT for verification — and returns the answer. You delegate the domain to Azure's name servers once, then manage records as Azure resources with RBAC, templates, and metrics like anything else.

Two zones for two worlds

Azure DNS answers to two very different audiences, and it splits into two zone types to serve them:

Public zones answer the internet. Private zones answer your virtual network. Most hybrid networking pain is one of these two failing to answer at all.

Why hybrid networking is secretly a DNS problem

Connect an on-premises datacenter to Azure and you will discover a hard truth: the tunnel is the easy part. The moment your on-prem servers need to resolve an Azure private name — or your Azure VMs need to resolve an on-prem one — you are in name-resolution territory, and that is where hybrid projects quietly stall. Azure's answer is the DNS Private Resolver, a managed service that lets you query Azure private zones from on-premises and vice versa "without deploying VM based DNS servers." Before it existed, teams ran their own DNS forwarder VMs just to bridge the two worlds — a fiddly, patch-hungry box that broke at the worst times. The Private Resolver retires that chore. If you remember one thing about hybrid, remember that half of it is DNS.

The wider Azure DNS family, in one breath

Beyond public and private zones and the Private Resolver, the same product line includes Traffic Manager, a DNS-based load balancer that steers users across regions by handing back different answers, and DNS Security Policy, which can filter and log DNS queries at the virtual-network level and block known-malicious domains at resolution time. Same phone book, extra powers: routing and a security checkpoint, both expressed through the humble DNS lookup.

The takeaway

Azure DNS is managed hosting for your DNS zones on Microsoft's global network. It answers the question "what IP is this name?" so you do not run name servers yourself. Use public zones for internet-facing domains and private zones for names inside your virtual networks, remember that hosting is not the same as registering, and reach for the DNS Private Resolver the moment on-prem and Azure need to resolve each other's names. Get those three straight and, the next time someone swears the network is down, you will be the one who checks resolution first and finds the real fault while the rest of the room is still blaming the firewall.

Questions people also ask

What is Azure DNS used for?

Azure DNS hosts your DNS zones on Microsoft's global network and answers name-resolution queries for them. It handles public zones for internet-facing domains and private zones for names inside a virtual network, so you manage records with the same credentials, APIs, and billing as the rest of your Azure estate, without running your own name servers.

Is Azure DNS a domain registrar?

No. Azure DNS hosts domains, it does not register them. You register a domain name, such as yourcompany.com, at a separate registrar. Hosting means running the name servers that answer queries about a domain you already own. You register the name elsewhere, then delegate it to Azure DNS to manage the records.

What is the difference between Azure public and private DNS zones?

Public DNS zones answer queries from anyone on the internet, for names like www.yourcompany.com. Private DNS zones only resolve names inside virtual networks linked to them; the records are not visible on the internet. Use public zones for internet-facing services and private zones for internal name resolution between VMs and other resources in a VNet.

How does Azure DNS work with hybrid networking?

Connecting on-premises to Azure creates a name-resolution gap: on-prem servers cannot resolve Azure private zones, and Azure resources cannot resolve on-prem names, by default. Azure DNS Private Resolver bridges both directions without deploying VM-based DNS forwarders, which is what teams had to run before the service existed.

Does Azure Private DNS support automatic registration?

Yes. Azure Private DNS can autoregister virtual machines in a linked virtual network when autoregistration is enabled on the zone. Each VM's record is added and kept current automatically as machines are created, renamed, or removed, so the private zone stays accurate without manual record management.

Further reading — the Microsoft docs
Your next class · free
You've read the idea. Class 15 — Hybrid & DNS is where you build it, hands-on — no account needed.Start Class 15 →
Captain O
Founder & instructor · CAMPUX Cloud Engineering Bootcamp
LinkedIn
Drilled in Class 15 — Hybrid & DNS. Back to all field notes →