Custom DNS entries in the xml configuration file don't work for P2S VPN client

Trent 1 Reputation point
2021-10-16T13:15:18.623+00:00

Hi

I added to the config xml

<dnsservers>
<dnsserver>172.16.1.7</dnsserver>
</dnsservers>

When connected the client logs shows:

(configureDNSSettings(clientConfig:settings:profileName:)) No DNS configuration specified.

and I can't resolve any on-prem resources by FQDN, only by IP.

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

1 answer

Sort by: Most helpful
  1. Devaraj G 2,091 Reputation points
    2021-10-17T03:14:48.22+00:00

    Hope the updated DNS config.xml is imported properly to machine after the changes in entries.

    Discussed about resolution here :

    https://learn.microsoft.com/en-us/answers/questions/64223/issue-with-resolving-hostnames-while-connected-to.html

    Point-to-site VPN client normally uses Azure DNS servers that are configured in the Azure virtual network. The Azure DNS servers take precedence over the local DNS servers that are configured in the client (unless the metric of the Ethernet interface is lower), so all DNS queries are sent to the Azure DNS servers. If the Azure DNS servers do not have the records for the local resources, the query fails.To resolve the problem, make sure that the Azure DNS servers that used on the Azure virtual network can resolve the DNS records for local resources. To do this, you can use DNS Forwarders or Conditional forwarders.

    0 comments No comments