Azure P2S OpenVPN DNS issue

Romar 86 Reputation points
2022-12-04T14:45:50.563+00:00

I setup Azure P2S VPN with AAD authentication and it works fine resolving hosts in Azure.
The setup is using two DNS servers that are installed default when adding AADDS to the Azure tenant.
It seems like these two DNS servers don't forward DNS requests and browsing the internet isn't possible.

I tried adding a custom DNS server to the XML file, but the Azure VPN client is only loading DNS servers that are configured in the Azure Virtual Network settings.

Is there a way to access the internet with Azure P2S VPN active and using the the two DNS servers I mentioned earlier?

Thank you in advance for pointing me to the right direction.

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,393 questions
{count} votes

Accepted answer
  1. Luke Murray 10,531 Reputation points MVP
    2022-12-04T18:50:30.937+00:00

    Make sure your custom DNS settings are in the right place (see this article for reference: add-custom-dns-servers-and-set-azure-point-to-site-vpn-to-connect-automatically

    Then remove the VPN from your Azure VPN client, and re-import with the new config - it has to be reimported to import the new settings - including the DNS settings, if these changes are made AFTER you have already imported the VPN - it will continue to use the old configuration.


0 additional answers

Sort by: Most helpful