How DNS resolution works (high level)
- A user enters a domain name (for example,
www.kodekloud.com) in their browser. - The browser asks a recursive resolver (for example, the ISP resolver or a public resolver like
8.8.8.8) to resolve the domain name. - If the resolver has no cached answer, it queries authoritative name servers for the zone. When the zone is hosted in Azure DNS, the Azure-provided authoritative servers are queried.
- Azure’s globally distributed (Anycast) authoritative name servers respond with the requested record (for example, an A record mapping
www.kodekloud.comto172.67.68.105). - The resolver returns the IP address to the client, and the browser connects to the service.

Why use Azure DNS?
- Global, low-latency resolution: Azure DNS uses Anycast routing so queries are answered from nearby authoritative servers, reducing lookup latency.
- High availability and redundancy: Multiple authoritative servers distributed worldwide provide resilience if some endpoints are unreachable.
- Fully managed service: Microsoft operates, patches, and maintains the DNS infrastructure so you don’t need to run DNS servers.
- Rich DNS features and records: Support for standard record types (A, AAAA, CNAME, MX, TXT, SRV, NS, SOA) and Azure-specific alias records to integrate with services like Azure Traffic Manager, Application Gateway, and Azure Front Door.
- Integrated management: Manage zones and records through the Azure portal, CLI, PowerShell, or ARM templates for automation and scale.
Common record types (quick recap)
| Record type | Purpose | Example | Notes |
|---|---|---|---|
| A | Maps a domain to an IPv4 address | www.kodekloud.com → 172.67.68.105 | Used for IPv4 endpoints |
| AAAA | Maps a domain to an IPv6 address | ipv6.example.com → 2001:db8::1 | Used for IPv6 endpoints |
| CNAME | Alias from one name to another | app.kodekloud.com → www.kodekloud.com | Cannot coexist with other records at the same name and not allowed at the zone apex |
| MX | Mail exchange records for email routing | mail.kodekloud.com | Specifies mail servers for the domain |
| TXT | Arbitrary text for verification and policies | v=spf1 include:mail.example.com -all | Used for SPF, DKIM, and other verification |
| SRV | Service location for protocols | _sip._tcp.example.com | Used by services to locate hosts and ports |
| NS | Delegates a zone to authoritative name servers | ns1.azure-dns.com | Set for delegating a domain to Azure DNS |
| SOA | Start of Authority (zone metadata) | contains zone serial, refresh, retry values | Managed automatically by Azure DNS |
Azure DNS is an authoritative DNS hosting service; it does not register domain names. To use Azure DNS for a domain you own, update your domain registrar’s name server (NS) records to delegate the domain to the Azure-provided name servers for your DNS zone.