Private DNS resolver randomly stopped working for point-to-site VPN

Alex L 20 Reputation points
2023-11-15T19:48:01.94+00:00

Hi there,

Months ago I setup an Azure point-to-site Network Gateway VPN client along with a private DNS resolver. I configured the VPN client with the following:

  <clientconfig>
    <dnsservers>
        <dnsserver>10.X.Y.Z</dnsserver>
    </dnsservers>
    <dnssuffixes>
        <dnssuffix>.my.custom.domain</dnssuffix>
    </dnssuffixes>
  </clientconfig>

Everything was working fine. Then all of a sudden last week, when new VPN users would download the VPN client config and set up their local VPN client, DNS was no longer resolving. However, on my computer that didn't download the latest VPN client config, DNS was still working. I just removed my VPN config and re-added it using the same exact config as I was using previously, and now I can't resolve DNS either. Yet, I'm able to connect to the DNS server and use it when I specify it. See below for two nslookup examples where one specifies the DNS server:

$ nslookup foo.my.custom.domain                                                                                                                                                                                                                 
Server:		192.168.X.Y
Address:	192.168.X.Y#Z
** server can't find foo.my.custom.domain: NXDOMAIN

$ nslookup foo.my.custom.domain 10.X.Y.Z # my private DNS resolver IP                                                                                                                                                                                                     
Server:		10.X.Y.Z
Address:	10.X.Y.Z#A
Non-authoritative answer:
Name:	foo.my.custom.domain
Address: 10.A.B.C

Any ideas why this is happening and how I can fix it? I've also tried downloading the latest VPN client config but that doesn't work either. I think maybe the Azure VPN app was updated on my mac too? Although I can't remember. Maybe that broke something?

Thanks for your help!

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
629 questions
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,436 questions
{count} votes

Accepted answer
  1. KapilAnanth-MSFT 39,461 Reputation points Microsoft Employee
    2023-11-29T04:06:59+00:00

    @Alex L

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    You informed us that DNS configurations from the VPN Client File was not working and you don't have an Intune profile configured.

    Further, the issue was resolved once you restarted the Mac device.

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    0 comments No comments

0 additional answers

Sort by: Most helpful