question

TimMcTa-4910 avatar image
0 Votes"
TimMcTa-4910 asked SaiKishor-MSFT answered

Gateway for virtual network - DNS Server

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-virtual-networkazure-vpn-gateway
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered

@TimMcTa-4910
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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.