Gateway for virtual network - DNS Server

Tim McTa 11 Reputation points
2021-03-18T18:56:15.363+00:00

Hi Guys,

I created a virtual network and a gateway for it.
I tried many different configurations. As tunnel type I used:

  • OpenVPN -> WIN: Azure VPN and MACOS: Tunnelblick
  • IKEv2 and SSTP -> WIN: Run the .exe delivered by the gateway, MACOS: created new vpn connection

In the virtual private network I set the DNS-Configuration to "Default".
Further I created a private DNS-Zone to add a different mapping for my domain, while I am connected with the VPN.

But no client sets an DNS server. So no domain of the virtual network can be resolved by the clients. Further I tried nslookup with so many dns server addresses I found in web, but I didn't find the right DNS-Server address.
My question is: How can I get the information of the private dns zone from my VPN clients? And how can I set the right DNS server as default DNS server for all clients?

I read many documentations. I found no solution for this problem. Maybe somebody of you can help.

T

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,389 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,161 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,201 Reputation points
    2021-03-25T17:18:11.387+00:00

    @Tim McTa
    You cannot resolve DNS queries from P2S using Private DNS Zones. Here is the link for upvoting this feature.

    In this case, It's possible to make a DNS forwarder that forwards queries to Azure (virtual IP 168.63.129.16) from on-premise DNS to an azure private DNS Zone. See Name resolution that uses your own DNS server.

    Please refer to this stackoverflow issue for more details. Hope this helps.

    Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    1 person found this answer helpful.