Configuring Hybrid DNS Conditional Forwarders for Azure and AD
Learn how to configure Azure DNS Private Resolver with Windows conditional forwarders to fix hybrid AD-to-Azure name resolution failures for good.

Advertising disclosure: this article includes partner links. KBY may earn a commission if you sign up or buy through one, at no extra cost to you. How we make money.
Before you begin
- Basic Windows Server DNS zone administration
- Azure networking fundamentals (VNets, subnets, NSGs)
- Familiarity with Azure CLI and PowerShell
Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
Once servers start moving into Azure, the computers in the office and the services in the cloud have to find each other by name, in both directions. When those lookups break, the tickets rarely mention DNS: they describe device joins, Group Policy and database connections that work only some of the time. This walkthrough builds the forwarding path that makes those lookups dependable, using Azure DNS Private Resolver and Windows conditional forwarders.
#Why hybrid name resolution fails as workloads move to Azure
You are the engineer who inherits the hybrid DNS ticket queue the week workloads start moving into Azure. An estate that runs Active Directory on-premises alongside Azure Private Endpoints for App Service, SQL Managed Instance and Storage only works if name resolution crosses cleanly in both directions.
Users on the corporate VPN or ExpressRoute circuit need to resolve corp.kbytech.local AD-integrated names. On-premises clients reaching Azure services through Private Endpoints need names such as mydb.database.windows.net to resolve, via Azure Private DNS zones such as privatelink.database.windows.net and privatelink.blob.core.windows.net, to private IP addresses, not public ones.
If forwarding between the two estates is not explicitly configured, clients get intermittent SERVFAIL and NXDOMAIN responses depending on which resolver happens to answer first.
That failure does not present as a single clean error. It presents as a wave of tickets: Hybrid Azure AD Join failing on some machines, Group Policy quietly not applying on Azure-hosted VMs, Intune or SCCM co-management agents that stop phoning home, and SQL connection strings that resolve to public IPs instead of the private endpoint.
None of these symptoms point directly at DNS. Treat any cluster of ‘works sometimes’ tickets from Azure-joined machines as a DNS forwarding suspect first, not last.
Your task is to build a production forwarding path using Azure DNS Private Resolver on the Azure side and Windows conditional forwarders on-premises. This is the current Microsoft-recommended pattern. It replaces the older approach of running IaaS DNS forwarder VMs in Azure. That is technical debt you will still find in older client tenants, and you should flag it for retirement whenever you encounter it.
#Prerequisites and required permissions
Confirm every item below before you open a change record. Missing permissions mid-change is how a thirty-minute task turns into a half-day escalation.
- Azure RBAC: Network Contributor on the target subscription or resource group.
- An existing hub VNet with ExpressRoute or Site-to-Site VPN already established, with routing confirmed to the on-premises DNS server subnet (10.0.1.0/24 in this walkthrough).
- Two unused /28 subnets in the hub VNet reserved for the resolver’s inbound and outbound endpoints. Each endpoint needs its own subnet, delegated to Microsoft.Network/dnsResolvers, and neither subnet can host any other resource.
- On-premises: membership of the DnsAdmins group, or Domain Admins, on the Windows Server DNS role holders, which are typically the domain controllers themselves.
- Firewall and NSG rules reviewed in advance, allowing UDP and TCP port 53 across the VPN or ExpressRoute path for two flows: from the outbound endpoint subnet (10.10.4.16/28) to the on-premises DNS servers (10.0.1.0/24), because forwarded queries leave Azure from that subnet, and from the on-premises DNS servers (10.0.1.0/24) to the inbound endpoint subnet (10.10.4.0/28), where 10.10.4.4 listens.
- A change record raised and approved in your ITSM tool before touching production DNS. DNS changes with no rollback plan are how outages become incidents.
#Step 1 — Deploy the Azure DNS Private Resolver and delegated subnets
Create the two dedicated subnets first. The resolver service refuses to attach to a subnet that has not been delegated correctly, and it fails without a helpful message if you skip this.
1az network vnet subnet create \
2 --resource-group rg-network-hub \
3 --vnet-name vnet-hub \
4 --name snet-dns-inbound \
5 --address-prefixes 10.10.4.0/28 \
6 --delegations Microsoft.Network/dnsResolvers
7
8az network vnet subnet create \
9 --resource-group rg-network-hub \
10 --vnet-name vnet-hub \
11 --name snet-dns-outbound \
12 --address-prefixes 10.10.4.16/28 \
13 --delegations Microsoft.Network/dnsResolvers
14
15# --id is required: the resource ID of the VNet the resolver attaches to
16az dns-resolver create \
17 --name dnspr-hub \
18 --resource-group rg-network-hub \
19 --location uksouth \
20 --id "/subscriptions/<sub-id>/resourceGroups/rg-network-hub/providers/Microsoft.Network/virtualNetworks/vnet-hub"Keep the delegated subnets in place even after you roll back the resolver resource. Recreating delegated subnets under incident pressure is slower and riskier than leaving them provisioned but empty.
#Try it in a lab subscription
In a non-production subscription, deploy the resolver, create one forwarding rule for a test domain, and configure a conditional forwarder on a lab domain controller pointing at the inbound endpoint IP. Capture Resolve-DnsName output proving resolution succeeds in both directions, then execute the rollback sequence above and confirm the zones and rules are fully removed, with Get-DnsServerZone and az dns-resolver forwarding-rule list both returning empty results.
#A forwarding path is infrastructure, not a one-off fix
Hybrid DNS forwarding is more than a one-off setup task. It is production infrastructure and needs the same change control, monitoring and rollback discipline you would apply to a firewall rule or a routing table change.
Azure DNS Private Resolver replaces the older self-managed forwarder VM pattern and removes a whole category of patching and availability debt, but it still depends entirely on correct NSG rules, correct subnet delegation and correctly terminated domain names in the forwarding rule.
Test resolution from both sides of the link before you close any change record, retain the Log Analytics query evidence, and never delete the resolver resource before removing the dependent rulesets and on-premises forwarder zones in the documented order.
Get this wrong once during onboarding and you will remember the trailing dot for the rest of your career; get it right and hybrid name resolution stops being a source of unexplained tickets and becomes just another line item on the monitoring dashboard.
#Related reading
Preventing DNS Split-Brain in Hybrid Azure/AD
Resolving Hybrid DNS Failures for Entra ID Hybrid-Joined Devices
Azure Conditional Access Misses Service Principal Sign-Ins
DNS Resilience Defaults Silently Override Expected Safeguards
About this page
Credited to
Dates
Published
Sources
Found this useful? Follow KBY for more like it.
Recommended reading
More from KBY that goes with this article.

Small business ITSPF, DKIM and DMARC: the three DNS records that make it harder to send email as your business
8 min read
Related articles
Enterprise IT Management
Part 6: Reset, Retire and Reuse Windows Autopilot Devices Safely in Intune
Autopilot Reset, Wipe and Fresh Start compared, a handover to a new user, and the safe order for retiring a device.
ReadSecurity
Azure API Management CVE-2026-139934 Added to CISA’s Exploited List: Rotate Secrets Now
CISA lists the Azure API Management Classic flaw as exploited. Microsoft's fix does not invalidate stolen credentials, so stored secrets still need replacing.
ReadDiscover more
Graduate Learning
Ops Playbook
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Build practical engineering skills.
Receive new lessons, learning paths, practical exercises and early-career guidance.
Comments
Add a thoughtful note on Configuring Hybrid DNS Conditional Forwarders for Azure and AD. Comments are checked for spam and held for moderation before appearing.