Resolving DNS record from Azure private dns zone through VPN Point to site

Mohamed jihad bayali 1,136 Reputation points
2023-02-06T14:24:10.0833333+00:00

Hello Team,

I hope you're doing fine,

I have a scenario and i want to share it with you and have your ideas about it

I have a vm on Azure connected to a vnet
I configured a point to site vpn to access this VM, the virtual network of the gateway is the same as the VM.
I can successfully connect to the VM using the VPN

My need, is to create a dns record for that particular VM, so that i can ping it using it hostname, for this :

I create a dns zone in the azure private DNS zones
I linked the DNS Zone to the vnet of the Gatewat
I created the A record for that VM

Issue : i can't resolve the record from my end (Using the P2S VPN), but i can resolve it from other azure VMs on the same Vnet.

I want to know if i'am missing something and if it is possible to resolve the hostname using the P2S ? Or i would need to setup a dns server in Azure, configure it to forward the requests to 168.63.129.16 (Azure dns Virtual IP), and then configure the vpn client to use the dns server that i created in Azure ?

Thank you in advance team

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
774 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tchimwa Sougang 946 Reputation points Microsoft Employee
    2023-02-06T14:42:21.33+00:00

    Hi @Mohamed jihad bayali Thank you for your question.

    In fact in order to get the resolution through your Point-to-site, you need a DNS level forwarder set up on Azure that will be able to forward the DNS query to the private DNS zone managed by 168.63.129.16. Please feel free to use the link below to understand the concept and implement the solution.

    https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-dns#on-premises-workloads-using-a-dns-forwarder

    Do not hesitate to comment if you have further questions.

    Please feel free to "Accept the answer" if it was helpful.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.