An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
- Without an internal DNS server, the only built-in options to influence name resolution for P2S clients in Virtual WAN are:
- Configure DNS servers on the Virtual WAN P2S gateway, so the VPN profile advertises those DNS servers to clients.
- For Windows clients using Azure VPN Client, optionally modify the downloaded profile XML to add custom DNS entries.
abc.comdirectly to192.100.12.2) without using a DNS server that can answer for that name. So, without an internal DNS server, there is no clean, supported way to makeabc.comresolve differently only when connected over VPN on Android/iOS. - The VM private IP (192.100.12.2) should not be configured directly as a DNS server in the Virtual WAN P2S configuration unless that VM is actually running a DNS service and is reachable from the P2S clients over the VPN. The P2S configuration expects valid DNS server IPs, not arbitrary endpoints. The documentation describes two supported ways to add DNS servers for P2S clients:
- Use PowerShell to add custom DNS servers to the gateway (preferred, because it configures DNS at the gateway level rather than per client).
- For Azure VPN Client on Windows 10, modify the downloaded profile XML and add
<dnsservers><dnsserver>...</dnsserver></dnsservers>before importing it.
.ovpnfile for Android/iOS in the Virtual WAN scenario. - Recommended approach for Android/iOS clients to use a domain name:
- Deploy a DNS server (for example, on a VM or as part of an existing DNS infrastructure) that:
- Is reachable from the P2S address pool via the Virtual WAN hub and VNet connections.
- Hosts a zone (for example,
abc.com) and an A record pointingabc.comto192.100.12.2.
- Configure that DNS server’s IP address as a custom DNS server in the Virtual WAN P2S configuration using the supported method (PowerShell or profile configuration, depending on client type).
- Regenerate and redistribute the VPN client configuration so Android/iOS OpenVPN clients receive the DNS server information from the Virtual WAN profile.
abc.comover VPN without modifying local host files. - Deploy a DNS server (for example, on a VM or as part of an existing DNS infrastructure) that:
References:
- Virtual WAN FAQ
- Manage secure access to resources in spoke VNets for User VPN clients
- About Point-to-Site VPN
- Configure Azure VPN Client for User VPN P2S certificate authentication connections - Windows
- Create a P2S User VPN connection using Azure Virtual WAN - PowerShell
- Tutorial: Create a P2S User VPN connection using Azure Virtual WAN - Certificate or RADIUS authentication
- Configure P2S User VPN clients: certificate authentication - OpenVPN client - iOS