Cloud service · Azure · Updated

Azure DNS - Azure DNS is a managed service for hosting public and private DNS zones and resolving domain names using Azure infrastructure.

In short

Azure DNS provides authoritative public DNS hosting, private name resolution for virtual networks, and managed hybrid DNS resolution through Azure DNS Private Resolver. Engineers can manage zones and records through Azure tools and APIs, integrate DNS with private endpoints, and combine it with Traffic Manager for DNS-based application routing.

Cloud Services Hub →

10 key features of Azure DNS

01
Globally distributed public DNS hosting

Host authoritative public zones on Azure's anycast name server network. Delegate the domain or subdomain to the zone's assigned name servers so internet resolvers can discover its records.

02
Private DNS zones and virtual network links

Maintain internal namespaces independently of public DNS and expose them through linked virtual networks. When clients use custom DNS servers, configure forwarding to a resolver that can resolve the linked zones.

03
Virtual machine autoregistration

Enable autoregistration on a private zone's virtual network link to maintain DNS records for eligible virtual machines. A virtual network can autoregister into only one private DNS zone, although it can link to additional zones for resolution.

04
Managed hybrid DNS resolution

Azure DNS Private Resolver provides inbound endpoints for queries entering Azure and outbound endpoints with forwarding rulesets for selected external namespaces. It removes the need to operate DNS forwarding virtual machines for these scenarios.

05
Resource-aware alias records

Use alias record sets to reference supported Azure resources instead of manually copying their DNS targets or addresses. Supported alias configurations also address apex-domain scenarios where an ordinary CNAME is not permitted.

06
Traffic Manager linked records

Associate an Azure DNS record set directly with an Azure Traffic Manager profile for DNS-based routing. This removes the additional CNAME lookup through trafficmanager.net and enables DNSSEC-compatible load-balanced records without that unsigned domain in the resolution chain.

07
DNSSEC for public zones

Sign public DNS zones to let validating resolvers authenticate DNS responses. Complete the chain of trust by publishing the zone's DS information in its parent, usually through the domain registrar.

08
DNS security policies

Apply virtual network-level DNS logging and domain-based allow, alert, or block actions. Use Microsoft's managed Threat Intelligence feed to detect or block resolution of known malicious domains, and export supported logs to Azure monitoring destinations.

09
Internet fallback for private DNS

Enable the supported fallback-to-internet option on private DNS virtual network links to allow public resolution after an authoritative NXDOMAIN response from a private zone. Use this deliberately in Private Link designs where a private zone would otherwise hide publicly resolvable resources.

10
Azure-native management and access control

Automate zone and record changes using Azure Resource Manager, CLI, PowerShell, REST APIs, or SDKs. Scope Azure RBAC permissions to the required resources and use locks and activity logs to reduce accidental changes and support audits.

Where Azure DNS is used

  1. 01
    Host application and email domain records

    Manage website addresses, mail routing, domain verification, and email authentication records in a public zone. Delegate the domain to Azure DNS while keeping registration and renewal with the chosen registrar.

  2. 02
    Resolve private application names across virtual networks

    Create an internal namespace and link the virtual networks that need to resolve it. Use VM autoregistration where appropriate and explicitly manage records for workloads that are not covered by autoregistration.

  3. 03
    Support Private Link access to platform services

    Host service-specific private DNS zones so application clients resolve service hostnames to private endpoint addresses. Combine private endpoint DNS zone groups with the required network links or forwarding paths.

  4. 04
    Centralize hybrid DNS

    Use Private Resolver in a hub network to resolve Azure private names from on-premises environments and forward corporate namespaces from Azure. Keep forwarding rules consistent across consuming networks and test for loops or overlapping namespaces.

  5. 05
    Route public applications across regions

    Combine Azure DNS with Traffic Manager to return endpoints according to configured routing methods and health monitoring. Account for DNS caching when setting recovery expectations because DNS failover does not move established connections.

  6. 06
    Protect and investigate workload DNS activity

    Use DNS security policies to observe queries and apply domain-based filtering at the virtual network level. Start with alerting to assess legitimate dependencies before enabling blocking, and send logs to a central monitoring destination.

How Azure DNS is priced

Public DNS zone and query consumption

Public DNS hosting is billed by the number of hosted zones and the DNS queries they receive, with usage tiers affecting applicable rates. Domain registration, Traffic Manager, and other connected services are charged separately.

Private DNS zone and query consumption

Private DNS has usage-based charges for hosted private zones and billable DNS queries. Estimate costs across the full private-zone estate and the query volume generated by applications, including retries and short-TTL lookups.

Private Resolver provisioned resources

Azure DNS Private Resolver has separate charges for provisioned inbound endpoints, outbound endpoints, and DNS forwarding rulesets according to the applicable pricing meters. Include continuously provisioned resources in baseline costs and budget separately for connectivity, monitoring ingestion, and any DNS security policy charges.

Services Azure DNS works with

Public application architectures typically use Azure DNS as the authoritative host for custom domains while App Service or another application platform handles requests and TLS. Domain delegation establishes public discoverability, and verification records establish ownership for the application service. When applications span regions, Traffic Manager adds DNS-based endpoint selection; linked records connect the Azure DNS record set directly to its routing profile.

Private architectures combine Azure Private DNS zones, virtual network links, and Private Link endpoints. Centralizing service-specific private zones can simplify administration, but each consuming network still needs a valid resolution path. Private endpoint DNS zone groups maintain service records, while network routing and service permissions independently determine whether clients can connect.

Hybrid hub-and-spoke designs commonly place Azure DNS Private Resolver in a hub connected to on-premises networks through VPN Gateway or ExpressRoute. On-premises DNS servers forward Azure namespaces to inbound endpoints, and outbound rules forward corporate namespaces to reachable DNS servers. Azure Monitor supports operational visibility, while DNS security policy logs provide query-level evidence for troubleshooting and threat investigation. Test resolution from each client location rather than relying only on authoritative record checks.

Azure Virtual Network

Link private DNS zones to virtual networks that require access to their records. For example, link an internal application zone to both application and operations networks so clients using Azure-provided DNS can resolve the same internal names. Peering provides network connectivity but does not automatically create these DNS links.

Azure Private Link

Use private endpoint DNS zone groups to manage the appropriate records in service-specific private DNS zones. For example, a Blob Storage private endpoint uses privatelink.blob.core.windows.net so the storage account's normal service hostname can resolve through the private DNS path to a private address. Ensure consuming networks have a zone link or working DNS forwarding path, and configure routing and service authorization separately.

Azure Traffic Manager

Associate DNS record sets directly with Traffic Manager profiles through linked records to apply health-aware DNS routing without the extra trafficmanager.net CNAME lookup. For example, route a public application between regional endpoints using a priority-based Traffic Manager profile. Configure health probes and TTLs carefully because cached DNS responses can delay client movement after a failure.

App Service

Host the records required to validate and map custom domains to App Service applications. For example, create the required verification TXT record and a CNAME for www.contoso.com pointing to the application's default hostname. DNS configuration does not replace the custom-domain binding or TLS certificate configuration in App Service.

Azure VPN Gateway

Combine private hybrid connectivity with Azure DNS Private Resolver to exchange DNS queries between Azure and on-premises networks. For example, configure an on-premises DNS server to forward an Azure private namespace to a resolver inbound endpoint over a VPN connection. Use an outbound endpoint and forwarding rules for corporate namespaces, and verify routing and UDP/TCP port 53 reachability.

Azure Monitor

Use Azure Monitor metrics and activity logs to track supported DNS resource behavior and configuration changes. For example, alert on unusual public-zone query volume and audit unexpected record-set modifications. For virtual network DNS query details, configure DNS security policy traffic logging to a Log Analytics workspace rather than assuming public authoritative zones expose equivalent per-query logs.

API Management

Azure Public DNS can publish a custom API gateway hostname such as `api.contoso.com`. For a private gateway endpoint, an Azure Private DNS zone can resolve the gateway hostname to its private IP address.

Automation

Azure Private DNS can resolve Azure Automation private endpoints used by webhooks and Hybrid Runbook Workers. A linked virtual network can resolve those endpoints through the `privatelink.azure-automation.net` zone.

Azure AI Bot Service

Azure Private DNS can resolve the private endpoint hostnames that Azure AI Bot Service uses for Direct Line and token traffic. Clients in linked virtual networks can reach those endpoints at private IP addresses.

Azure AI Custom Vision

Azure Private DNS can resolve the custom endpoint hostnames of supported Custom Vision training and prediction resources to their private endpoint IP addresses.

Alternatives to Azure DNS in other clouds

AWS

Amazon Route 53Amazon Route 53

Amazon Route 53 and Azure DNS both host public and private DNS zones. Route 53 provides health-based routing and domain registration directly, while Azure DNS uses Azure Traffic Manager for health-based routing and leaves registration to a separate registrar.

Compare fact by fact
Azure DNSAmazon Route 53
Health-based routingVia Azure Traffic ManagerBuilt into Route 53
Domain registrationSeparate registrar requiredDirect through Route 53
Private-zone query chargesUsage-based query chargesNo query charges

What is Azure DNS

2 min read

Azure DNS hosts DNS records that map domain names to IP addresses and other DNS data. Public zones are served by Azure's globally distributed authoritative name servers using anycast networking. Private zones provide name resolution within linked virtual networks without publishing their records to the internet. Azure DNS Private Resolver extends private DNS architectures with managed inbound resolution and outbound conditional forwarding.

For a public domain, create a DNS zone, populate its record sets, and configure the domain's registrar or parent zone to delegate to the Azure-assigned name servers. Creating a zone alone does not change public resolution. Azure DNS does not register domain names, so registration and renewal remain separate responsibilities. During migration, copy existing records, verify responses directly against the assigned name servers, and account for cached delegation and record TTLs before retiring the previous DNS provider.

Records are managed as record sets identified by name and type. Common types include A, AAAA, CNAME, MX, TXT, and SRV. Use TXT records for SPF policies and domain verification. A CNAME cannot coexist with other record types at the same name and cannot be used at a zone apex that already contains SOA and NS records. For supported Azure targets, alias record sets provide resource-aware mappings, including supported apex configurations.

Azure Private DNS zones are separate resources from public zones, even when their domain names match. Link each consuming virtual network to the relevant private zone, or provide a resolver path that can access it. Virtual network peering alone does not establish private DNS zone visibility. Autoregistration on a virtual network link can maintain records for virtual machines; it does not automatically register every Azure resource. Clients using custom DNS servers require appropriate forwarding rather than relying solely on zone links.

For hybrid environments, deploy Azure DNS Private Resolver inbound endpoints so on-premises DNS servers can forward queries into Azure. Use outbound endpoints and DNS forwarding rulesets to send selected namespaces to on-premises or other reachable DNS servers. Plan network connectivity, endpoint subnets, and DNS traffic permissions, and avoid forwarding loops. Private endpoints additionally require the correct service-specific private DNS zones and records; DNS resolution does not itself establish network connectivity or authorize access.

Manage DNS resources through Azure Resource Manager, the portal, CLI, PowerShell, REST APIs, or infrastructure-as-code deployments. Apply least-privilege Azure RBAC, resource locks, and activity-log review to protect changes. Azure Public DNS supports DNSSEC; publish the required DS information through the parent zone or registrar to establish a validation chain. DNSSEC authenticates DNS data but does not encrypt queries.

DNS changes remain subject to resolver caching, so lower TTLs before planned cutovers and validate both authoritative and client-visible answers. Azure DNS does not provide HTTP redirects or AXFR/IXFR zone transfers. Application health-based routing belongs to Azure Traffic Manager, which can be associated directly with Azure DNS record sets through Traffic Manager linked records. For virtual network DNS inspection and filtering, DNS security policies provide logging, domain-based actions, and Microsoft-managed threat intelligence.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.