Home › Studies › AZ-700 › Core Networking › Name Resolution

Name Resolution

Azure-provided DNS · custom DNS servers · VNet DNS settings · public zones · private zones · VNet links · DNS Private Resolver

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

Name resolution options inside a VNet

Resources in a VNet resolve internal names in one of four ways: Azure Private DNS zones, Azure-provided name resolution, your own DNS server (which can forward to Azure), or Azure DNS Private Resolver. Microsoft calls private DNS zones the preferred solution.

ScenarioSolutionName form
VMs in the same VNetPrivate DNS zones or Azure-provided name resolutionHost name or FQDN
VMs in different VNetsPrivate DNS zones, DNS Private Resolver, or customer DNS servers that forward between the VNetsFQDN only
App Service app (VNet integration) to VMs in the same or another VNetDNS Private Resolver or customer-managed DNS forwardersFQDN only
On-premises names from Azure VMsDNS Private Resolver or customer-managed DNS serversFQDN only
Azure host names from on-premises computersForward queries to a customer-managed DNS proxy in the VNet; the proxy forwards to AzureFQDN only
Reverse DNS for internal IPsPrivate DNS zones, Azure-provided DNS, DNS Private Resolver or your own DNSNot applicable

If you use Azure-provided DNS the DNS suffix is applied to your VMs automatically. With any other option you must use FQDNs or add the suffix yourself.

Azure-provided name resolution

Your own DNS server

Reverse DNS

DNS settings for a VNet

SettingBehavior
Default (Azure-provided)Names and private IPs register automatically. Resolves names only within the VNet.
CustomYou list DNS servers (up to 20 per VNet and 20 per NIC). Servers are tried in the order listed, not round-robin: if the first is reachable it's used even if unhealthy.
Per-NIC DNS serversOverride the VNet setting. A NIC (or cloud service) setting takes precedence.
Custom with no addressAt least one server IP is required. Otherwise the VNet ignores the setting and uses Azure-provided DNS.
Name resolution order, default DNSLinked private DNS zones first, then Azure-provided DNS.
Name resolution order, custom DNSLinked private DNS zones aren't queried automatically; the custom setting overrides. Use a Private Resolver inbound endpoint, or a VM forwarder with a conditional forwarder to 168.63.129.16.

Public DNS zones

Records

ItemRule
TypesA, AAAA, CAA, CNAME, MX, NS, PTR, SOA, SRV, TXT. SPF records use the TXT type.
Record setRecords with the same name and type. TTL is set per record set, 1 to 2,147,483,647 seconds.
SOA and CNAMEOnly one record per set.
CNAMECan't coexist with another record set of the same name. Can't be created at the zone apex (@).
NS at the apexCreated and deleted automatically with the zone. You can add name servers but can't remove or change the Azure ones.
WildcardsSupported for all types except NS and SOA.
Tags and metadataTags on zones only; record sets use metadata instead.

Alias records

Host a domain: steps

  1. Create the DNS zone.
  2. Create the records in the zone.
  3. Retrieve the Azure name servers of the zone. Azure assigns them from a pool when the zone is created and adds the NS records.
  4. At the registrar, set the NS records to the Azure name servers. Use all four, copy the trailing period, and don't use vanity name servers from your own zone.
  5. Verify with nslookup -type=SOA <domain>. Allow at least 10 minutes.
Default limitValue
Public DNS zones per subscription250
Record sets per public zone10,000
Records per record set20
Alias record sets per Azure resource50

Private DNS zones and VNet links

LimitValue
Private DNS zones per subscription1,000
Record sets per private zone25,000
VNet links per private zone1,000
VNet links with autoregistration per private zone100
Zones one VNet can link to / with autoregistration1,000 / 1

Virtual network links

Registration VNetResolution VNet
Link settingAutoregistration enabledAutoregistration not enabled
VM recordsCreated automatically in the zoneNot created automatically
Can query the zoneYesYes, including records from registration VNets and manual records
Per zoneManyMany
Per VNetOnly one registration zoneMany resolution zones

Azure DNS Private Resolver

A fully managed, highly available service that resolves DNS between VNets and on-premises without VM-based DNS servers. You create it in a VNet; clients need no DNS client changes. Hybrid resolution needs ExpressRoute or a VPN.

ComponentPurpose and rules
Inbound endpointReceives queries from on-premises or other private locations at an IP in your VNet range. Point on-premises conditional forwarders at it to resolve Azure private zones. IP is static or dynamic (dynamic = the fifth address in the subnet; static can't be a reserved address).
Outbound endpointSends queries from Azure to on-premises, other clouds or external DNS servers, based on a forwarding ruleset. Has a subnet but no IP address.
Forwarding rulesetGroup of rules. Applies to up to 2 outbound endpoints of the same resolver. Links to up to 500 VNets in the same region.
Forwarding ruleDomain name (dot-terminated, up to 34 labels), destination IP:port (up to 6 targets), enabled or disabled. The most specific (longest) match wins.
VNet link (ruleset)Gives a VNet the ruleset's rules. The VNet needn't be peered with the resolver VNet.

Rules and restrictions

LimitValue
DNS private resolvers per subscription15
Inbound / outbound endpoints per resolver5 / 5
Forwarding rules per ruleset1,000
VNet links per ruleset500
Outbound endpoints per ruleset / rulesets per outbound endpoint2 / 2
Target DNS servers per rule6
Queries per second per endpoint10,000

How a query is resolved in a VNet

  1. If the VNet has custom DNS servers, the query goes to them.
  2. With Azure-provided DNS, private DNS zones linked to the VNet are consulted.
  3. If no zone matches, the ruleset links of the VNet are consulted.
  4. With no ruleset link, Azure DNS answers.
  5. With a ruleset link, the rules are evaluated. A suffix match forwards the query; with several matches the longest suffix wins.
  6. With no match, nothing is forwarded and Azure DNS answers.

Architectures in a hub and spoke

Distributed (ruleset links)Centralized (inbound endpoint as custom DNS)
Spoke DNS settingAzure-providedCustom DNS = inbound endpoint IP of the hub
Spoke needsA ruleset link and a rule that forwards the private zone to the inbound endpointIts custom DNS setting sends every query to the hub inbound endpoint, which resolves the zone
Private zone linked toThe hub VNet (not the spoke)The hub VNet, which holds the inbound endpoint
ControlEdit one ruleset to change every linked VNetAll DNS traffic flows to the hub
Loop riskDon't link the ruleset (with the inbound-endpoint rule) to the hubDon't add a rule that forwards the private zone to the inbound endpoint

CLI and PowerShell

TaskAzure CLIPowerShell
Change the DNS servers of a VNetaz network vnet update --resource-group myResourceGroup --name myVNet --dns-servers 10.0.0.10$virtualNetwork.DhcpOptions.DnsServers.Add("10.0.0.10") then Set-AzVirtualNetwork -VirtualNetwork $virtualNetwork
Create a public DNS zoneaz network dns zone create --resource-group MyResourceGroup --name contoso.comNew-AzDnsZone -Name contoso.com -ResourceGroupName MyDNSResourceGroup
Show a zone (and its name servers)az network dns zone show --resource-group myresourcegroup --name contoso.com-
List public DNS zonesaz network dns zone list --resource-group MyResourceGroup-
Add an A recordaz network dns record-set a add-record -g MyResourceGroup -z contoso.xyz -n www -a 10.10.10.10-
Create a private DNS zoneaz network private-dns zone create --resource-group MyAzureResourceGroup --name private.contoso.comNew-AzPrivateDnsZone -Name private.contoso.com -ResourceGroupName MyAzureResourceGroup
Link a VNet to a private zone with autoregistrationaz network private-dns link vnet create --resource-group MyAzureResourceGroup --name MyDNSLink --zone-name private.contoso.com --virtual-network myAzureVNet --registration-enabled trueNew-AzPrivateDnsVirtualNetworkLink -ZoneName private.contoso.com -ResourceGroupName MyAzureResourceGroup -Name "mylink" -VirtualNetworkId $vnet.id -EnableRegistration
Link a VNet for resolution onlyaz network private-dns link vnet create ... --registration-enabled falseNew-AzPrivateDnsVirtualNetworkLink -ZoneName private.contoso.com ... (without -EnableRegistration)
List private DNS zonesaz network private-dns zone list --resource-group MyAzureResourceGroup-
Create a DNS Private Resolver-New-AzDnsResolver -Name mydnsresolver -ResourceGroupName myresourcegroup -Location westcentralus -VirtualNetworkId "/subscriptions/<your subs id>/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet"
Create the inbound endpoint-New-AzDnsResolverInboundEndpoint -DnsResolverName mydnsresolver -Name myinboundendpoint -ResourceGroupName myresourcegroup -Location westcentralus -IpConfiguration $ipconfig
Create the outbound endpoint-New-AzDnsResolverOutboundEndpoint -DnsResolverName mydnsresolver -Name myoutboundendpoint -ResourceGroupName myresourcegroup -Location westcentralus -SubnetId /subscriptions/<your sub id>/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/snet-outbound
Create a forwarding ruleset-New-AzDnsForwardingRuleset -Name myruleset -ResourceGroupName myresourcegroup -DnsResolverOutboundEndpoint $outboundendpoint -Location westcentralus

Exam Tips

Tick each tip once you can answer it without looking.

“VMs in two different VNets must resolve each other's names with no DNS servers to manage” → A private DNS zone linked to both VNets (registration on one or both if you want automatic records).. Trap: Azure-provided DNS is scoped to one VNet, so it can't resolve names across VNets.

“What is 168.63.129.16?” → The Azure DNS virtual IP: static, gives resolution to VMs without custom DNS, and is the forwarder target for your own DNS servers.. Trap: You can't enter it as a destination in a Private Resolver forwarding rule, and it doesn't support reverse lookup.

“Custom DNS on the VNet, but VMs can't resolve a linked private zone” → Custom DNS overrides the default order. Forward to the Private Resolver inbound endpoint, or add a conditional forwarder to 168.63.129.16 for the zone.. Trap: Linking the zone is not enough once a custom DNS server is set.

“You changed the VNet DNS servers; VMs still use the old ones” → Renew the DHCP lease (ipconfig /renew) or restart the VM. Restart Azure Firewall and Application Gateway too.. Trap: Don't edit DNS settings inside the VM; they can be erased during service healing.

“A NIC has its own DNS servers and the VNet has others” → The NIC settings win.. Trap: DNS servers are used in order, not round-robin: the first reachable server is used even if unhealthy.

“Custom DNS is selected but the server list is empty” → The VNet ignores the setting and uses Azure-provided DNS.. Trap: Resolution doesn't break: the page says the VNet ignores the setting and uses Azure-provided DNS.

“Point contoso.com (apex) at a Traffic Manager profile or public IP” → An alias record set (A, AAAA or CNAME alias).. Trap: A real CNAME can't be created at the zone apex.

“Domain bought at a registrar; host it in Azure DNS” → Create the zone, add records, then set the registrar's NS records to all four Azure name servers.. Trap: You can't buy domains in Azure DNS, and vanity name servers in your own zone aren't supported.

“Two public zones with the same name in different resource groups” → Allowed, but each gets different name servers and only one set can be delegated at the registrar.. Trap: Duplicate names in the same resource group fail.

“VMs should register themselves in a private zone” → Link the VNet with autoregistration enabled (--registration-enabled true).. Trap: A VNet can have only one registration zone, and only the primary NIC is registered.

“Autoregistration for an internal load balancer or a second NIC” → Not automatic. Create those records manually.. Trap: Autoregistration covers VMs only, and PTR records aren't autoregistered.

“Different answer for the same name inside the VNet and from the internet” → Split-horizon: a public zone and a private zone with the same name.. Trap: A private zone can't have NS delegations, and its records aren't resolvable from the internet.

“Private endpoint for Blob storage; which zone” → privatelink.blob.core.windows.net linked to the VNet.. Trap: Automatic DNS configuration is generated only with the recommended zone names. Don't mix services in one zone.

“On-premises must resolve a private DNS zone” → DNS Private Resolver inbound endpoint; on-premises conditional forwarder points to its IP, over VPN or ExpressRoute.. Trap: An outbound endpoint sends queries out of Azure; it doesn't receive them.

“Azure must resolve on-premises names” → Outbound endpoint plus a forwarding ruleset with a rule for the on-premises domain, linked to the VNets.. Trap: A subnet for an endpoint is delegated only to Microsoft.Network/dnsResolvers and can't hold other resources.

“Spoke VNet must resolve the hub's private zone without linking the zone” → Link a ruleset with a rule forwarding the zone to the hub inbound endpoint (distributed), or set the spoke's custom DNS to that endpoint (centralized).. Trap: Never link that ruleset to the hub itself: DNS resolution loop.

“Two forwarding rules match a query” → The longest suffix (most specific domain) wins.. Trap: A shorter suffix, such as a wildcard rule, loses to a longer one.

Sources

Checked against Microsoft Learn on November 13, 2026.

← IP AddressingVNet Connectivity & Routing →