Hello Apurva Pathak
I understand that you're trying to understand how Azure Private DNS Zones works. The resolution depends on how the zones are linked to virtual networks and how DNS queries are forwarded. Let’s go through your scenarios one by one.
1. DNS Zone linked with Hub VNet, Hub peered with Spokes:
Spoke VNets can resolve records if you use Azure DNS Private Resolver in the Hub to forward DNS queries from spoke VNets to the Hub.
Refer Private Resolver architecture
2. DNS Zone linked with a Spoke VNet, Spoke peered with Hub, and Hub peered with other Spokes:
Resources in other spokes can resolve DNS records from a zone linked only to one spoke, if:
- The zone is also linked to those other spoke VNets explicitly, OR
- A custom DNS forwarder (e.g., running on a VM or Azure DNS Resolver) is deployed in the spoke or hub and configured across all VNets. Peering does not transitively share DNS zone links or resolution capabilities.
3. DNS servers setting in the linked VNet impact on Private DNS resolution
Yes, significantly. If you change the DNS server setting in a VNet to use custom DNS servers, then:
- The VNet will no longer automatically resolve Azure Private DNS zone.
- You must ensure your custom DNS server can forward queries for Private DNS zones to Azure’s IP.
Refer Configure DNS settings for Azure VNets
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.