WebApp custom DNS resolution through Point to Site to a VNET

Anonymous
2020-07-01T14:17:50.067+00:00

Hi,
I have an App Service connected to a virtual Network through Point to site VPN.
My App Service can access my On-Premise ressources via Virtual Network Gateway and Site to Site VPN.

Is there a way for my App Service to resolve On-Premise DNS Records by using On-Premise DNS servers?

I've tried to add custom DNS servers in VNET configuration, but it is not working.

Thank you for your help,

BR
Thomas.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
690 questions
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,503 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,901 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 21,691 Reputation points
    2020-07-09T08:19:51.833+00:00

    Thanks for asking question and My Apologize for delay in response here! After your app integrates with your VNet, it uses the same DNS server that your VNet is configured with. By default, your app won't work with Azure DNS Private Zones. To work with Azure DNS Private Zones you need to add the following app settings:

    1. WEBSITE_DNS_SERVER with value 168.63.129.16
    2. WEBSITE_VNET_ROUTE_ALL with value 1
      These settings will send all of your outbound calls from your app into your VNet in addition to enabling your app to use Azure DNS private zones.

    If you want to make calls to Private Endpoints then you need to either integrate with Azure DNS Private Zones or manage the private endpoint in the DNS server used by your app.

    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.