Hello lucas
Good day!
Thank you for your response.
Based on the provided details, it appears that the resolution is occurring over the Public DNS of Azure.
To resolve the DNS query over the Private DNS zone, please follow the steps outlined below.
- Deploy a custom DNS server in the Hub Vnet.
- Configure a forwarder in the DNS server to direct requests to the Azure Private DNS Zone (168.63.129.16).
- Ensure DNS resolution occurs via the Azure Private DNS Zone.
- Add a forwarder from on-prem DNS server to custom DNS server in the Azure and add another forwarder from Azure custom DNS server to Azure private DNS zone.
If you have a custom DNS server in Azure,
You can also use the following options to configure your DNS settings for private endpoints:
Use the host file (only recommended for testing). You can use the host file on a virtual machine to override the DNS.
Use a private DNS zone. You can use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone can be linked to your virtual network to resolve specific domains.
Use Azure Private Resolver (optional). You can use Azure Private Resolver to override the DNS resolution for a private link resource. For more information about Azure Private Resolver, see What is Azure Private Resolver?.
By setting up a DNS forwarder in your Azure Hub VNet, you can resolve private DNS zones from your on-premises network without using Azure Private Resolver. This solution allows you to maintain control over your DNS settings while ensuring connectivity to Azure Private Endpoints
Hope this clarifies!
If above is unclear and/or you are unsure about something add a comment below.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.
Regards,
Ganesh