Azure Private Endpoint DNS on Premises

When a workload needs Azure Private Endpoint DNS on premises to resolve correctly, the hard part is rarely the endpoint itself. The private IP exists, the NIC is healthy, and the portal looks fine. What breaks is name resolution: on-premises DNS still returns the public A record, or NXDOMAIN for the privatelink name, so the client never lands on the private address.

This guide compares Windows Server conditional forwarders with Azure DNS Private Resolver and walks through the forwarder rules and inbound endpoint setup you need in hybrid networks.


The problem

Private Endpoints register records in Azure Private DNS zones such as privatelink.blob.core.windows.net. VNets linked to those zones resolve the private IP inside Azure. On-premises DNS knows nothing about those zones unless you bridge them.

Typical symptoms:

  • nslookup storaccount.blob.core.windows.net from a domain-joined server returns the public IP
  • The same query from a spoke VM returns the private endpoint IP
  • TLS or firewall rules fail because the client is not on the private path

You need a controlled path so corporate clients receive private endpoint addresses for Azure PaaS names.


Architecture sketch

Pattern A — Conditional forwarders on Windows DNS

On-prem client
  -> corporate DNS
    -> conditional forwarder for privatelink.<service>.*
      -> DNS in Azure (hub DCs or a proxy that uses 168.63.129.16)
        -> Private DNS zone linked to that VNet
          -> Private Endpoint A record (10.x.x.x)

Pattern B — Azure DNS Private Resolver

On-prem client
  -> corporate DNS
    -> conditional forwarder for privatelink.* zones
      -> Private Resolver inbound endpoint IP
        -> Private DNS zones linked to the resolver VNet
          -> Private Endpoint A record

Both patterns need ExpressRoute or site-to-site VPN so UDP/TCP 53 reaches the Azure listeners. Pattern A reuses hub domain controllers; Pattern B removes the need to run your own DNS VM and scales better as privatelink zones grow. For inbound versus outbound endpoints and forwarding rulesets in more depth, see Azure DNS Private Resolver Field Notes.

For storage accounts behind private endpoints, the same DNS path matters before AzCopy jobs. See Cross-Tenant Azure Storage Archival and Verify an AzCopy Archive Before You Delete the Source.


When to prefer which

Criterion Conditional forwarders (+ DNS in Azure) Azure DNS Private Resolver
Ops model You patch DNS VMs/DCs Managed inbound/outbound endpoints
Zone growth New zone = new forwarder target care Same inbound IP; zones linked in Azure
On-prem change Forwarders on corporate DNS Same forwarders, target = inbound IP
Reverse path Optional stub/secondary zones Outbound endpoint + forwarding ruleset

If hub DCs already forward to 168.63.129.16, conditional forwarders alone can be enough. If DNS VMs are a liability, Private Resolver is usually cleaner.


Step-by-step: privatelink conditional forwarders

  1. List every Private Endpoint resource type you use (Blob, Files, SQL, Key Vault, and so on). Each maps to a privatelink zone.
  2. Confirm matching Private DNS zones exist and are linked to the hub (or the VNet that will answer queries).
  3. Ensure Azure-side DNS can resolve those zones — zone links or forward to Azure DNS (168.63.129.16) from that VNet.
  4. On corporate DNS, create a conditional forwarder per zone, for example privatelink.blob.core.windows.net, privatelink.database.windows.net, and privatelink.vaultcore.azure.net.
  5. Point each forwarder at Azure DNS IPs reachable over the hybrid link (hub DC IPs or Private Resolver inbound IPs — never a public resolver).
  6. Prefer privatelink zones over forwarding entire public zones such as blob.core.windows.net unless you fully understand alias behaviour.
  7. Flush caches and validate with nslookup from an on-premises host that uses corporate DNS.

Add forwarders whenever you introduce a new PaaS type with a new privatelink zone.


Step-by-step: Private Resolver inbound endpoint

  1. Create a dedicated subnet for the resolver inbound endpoint (commonly /28 or larger; keep it reserved for this role).
  2. Deploy Azure DNS Private Resolver in the hub VNet.
  3. Add an inbound endpoint in that subnet and note the private IP — that is the conditional-forwarder target.
  4. Link all relevant Private DNS zones to the resolver VNet.
  5. On corporate DNS, create conditional forwarders for each privatelink zone targeting the inbound IP (add a second inbound endpoint if you need regional resilience).
  6. Optionally add an outbound endpoint and forwarding ruleset if Azure VMs must resolve on-premises AD zones.
  7. Lock NSGs so only corporate DNS subnets can reach UDP/TCP 53 on the inbound endpoint.

PowerShell / Azure CLI example

$rg   = "rg-hub-dns"
$loc  = "westeurope"
$vnet = "vnet-hub"
$sn   = "snet-dns-inbound"

az dns-resolver create `
  --name "dnspr-hub" `
  --resource-group $rg `
  --location $loc `
  --id "/subscriptions/<subId>/resourceGroups/$rg/providers/Microsoft.Network/virtualNetworks/$vnet"

az dns-resolver inbound-endpoint create `
  --dns-resolver-name "dnspr-hub" `
  --name "in-hub" `
  --resource-group $rg `
  --location $loc `
  --ip-configurations "[{""private-ip-allocation-method"":""Dynamic"",""subnet"":{""id"":""/subscriptions/<subId>/resourceGroups/$rg/providers/Microsoft.Network/virtualNetworks/$vnet/subnets/$sn""}}]"

az dns-resolver inbound-endpoint show `
  --dns-resolver-name "dnspr-hub" `
  --name "in-hub" `
  --resource-group $rg `
  --query "ipConfigurations[0].privateIpAddress" -o tsv

On Windows DNS, register a forwarder once you have that IP:

Add-DnsServerConditionalForwarderZone `
  -Name "privatelink.blob.core.windows.net" `
  -MasterServers "10.10.0.4" `
  -ReplicationScope "Forest"

Replace 10.10.0.4 with the inbound endpoint address or your hub DNS servers for Pattern A.


Typical failures

  • Forwarding only the public zone, so queries never hit Private DNS and keep returning public IPs
  • Private DNS zone not linked to the VNet that answers the forwarded query (NXDOMAIN for privatelink)
  • Pointing forwarders at 168.63.129.16 from on-premises — that address is only reachable inside Azure
  • Hybrid path up for HTTPS but UDP/TCP 53 blocked by NSG or Azure Firewall
  • Stale client cache after the cutover
  • Storage works while SQL or Key Vault still resolve publicly because their zones were never forwarded

FAQ

Do I need Private Resolver if hub domain controllers already exist?

No. If those DCs resolve linked Private DNS zones (directly or via 168.63.129.16), on-premises conditional forwarders aimed at the DCs are enough. Use Private Resolver when you want fewer DNS VMs or a standardised landing-zone pattern.

Should clients query the privatelink FQDN directly?

Prefer the normal public Azure FQDN (account.blob.core.windows.net). With the private DNS path in place, that name CNAMEs to privatelink and returns the private IP. Hard-coding privatelink names in apps is brittle.

Can one inbound endpoint serve every privatelink zone?

Yes for resolution, as long as every Private DNS zone is linked to the resolver VNet. You still create one conditional forwarder per zone name on corporate DNS; they can all target the same inbound IP.


Closing

Azure Private Endpoint DNS on premises is a DNS design problem, not a Private Endpoint checkbox. Use conditional forwarders against hub DNS when that footprint already exists; use Azure DNS Private Resolver when you want a managed inbound IP. Wire privatelink zones deliberately, validate with nslookup from on-premises, then point application traffic at the private path.

Previous Post Next Post