DNS Resolution Issue for Point-to-Site VPN Users in Azure

Bathini Harshitha 0 Reputation points
2024-10-07T09:59:56.06+00:00

Why are my Point-to-Site (P2S) VPN users unable to resolve private DNS zones when connecting to Azure App Services?

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,437 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bathini Harshitha 0 Reputation points
    2024-10-07T10:00:51.5366667+00:00

    The issue you're encountering is due to a limitation where a private DNS zone will not work over an Azure P2S VPN connection by default. This results in DNS resolution failures for private endpoints when connected through a P2S VPN. Here are three proposed solutions to resolve this issue:

    Modifying the Hosts File: You can manually add entries to the hosts file on each P2S client to point the private resource to the private IP of the private endpoint. This method is straightforward but becomes difficult to manage at scale, especially if there are multiple entries and users.

    Configuring a DNS Forwarder or Proxy: Deploy a DNS forwarder or proxy, or use an IaaS VM with a DNS Server role in Azure to forward DNS queries to Azure DNS. You'll need to manually configure the AzureClient.xml file to use this DNS forwarder. This method centralizes DNS management but requires additional infrastructure setup.

    Using Azure DNS Private Resolver: Implement an Azure DNS Private Resolver to handle DNS queries for private endpoints. This removes the need for a separate DNS forwarder and simplifies the setup. The DNS Private Resolver will need only an Inbound endpoint and should be set as a DNS Server in the VNET.

    Resources:

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    Please do not forget to "Accept the answer" and "up-vote" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.