Windows 10: Always On VPN DNS resolution problem

Discus and support Always On VPN DNS resolution problem in Windows 10 Network and Sharing to solve the problem; Hi we set up Always On VPN in force-tunnel mode. Server side is RRAS on Win Server 2019, client is Win 10. The customer use split DNS, that means the... Discussion in 'Windows 10 Network and Sharing' started by Thomas A. Gusset, Aug 21, 2020.

  1. Always On VPN DNS resolution problem


    Hi

    we set up Always On VPN in force-tunnel mode. Server side is RRAS on Win Server 2019, client is Win 10.

    The customer use split DNS, that means the same FQDN points to a different IPs depending if you are in an inside or outside network.

    Everything works fine but there is a strange issue with DNS resolution.

    One would expect that in force-tunnel mode all the network traffic goes to the VPN tunnel. But for DNS requests you can observe, that there are DNS requests to the internal DNS servers like expected but also to the DNS servers configured on the LAN interface.

    It looks like Win 10 asks all the DNS servers and selects one of the responses if there are different responses. It seems to be the response from the DNS server on the interface with the lowest metric.

    The VPN client changes the metric as soon as the VPN tunnel is up.


    metrics while VPN is down

    Always On VPN DNS resolution problem 6545271a-61fb-4b1f-8c78-263575f7bd26?upload=true.png


    metrics when VPN is up


    Always On VPN DNS resolution problem f25d5ec3-449c-4b6f-83d4-b52c24081e40?upload=true.png


    as we can see the metric of the Ethernet interface has changed from 25 to 4250. Therefore VPN CL06 VPN Verwaltung has now the lowest metric and we would expect that DNS responses from the internal DNS servers will be used.

    But we still see the DNS response from the DNS server configured on the Ethernet interface. Because we have to access the internal server the DNS response returns the wrong IP.

    After some research we found that we should disable IPv6 on the LAN interface. And this works -> now DNS resolves the internal IP.

    This seems to be very strange.

    Next we changed the metric of IPv6 of the Ethernet interface from 25 to 100 and enabled IPv6 again.

    Always On VPN DNS resolution problem e9f4d144-2b10-457c-9136-8bfe06ad5db3?upload=true.png

    ... and it works too

    There is no IPv6 connectivity on the Ethernet interface nor on the VPN. We sniff the traffic on Ethernet interface and see only IPv4 DNS traffic.


    Any idea why this behavior could make sence?

    For me this seems to be a bug.

    Thomas

    :)
     
    Thomas A. Gusset, Aug 21, 2020
    #1
  2. drueter Win User

    Win 10: DNS resolution of remote network via VPN connection not working

    Changing the metric worked for me, but my situation was a little different:

    DNS resolution with my VPN had been working flawlessly with Win10 (first with Preview, then with RTM, always kept up-to-date) using Dell SonicWALL NetExtender (currently version 7.5.223)

    Then this morning DNS resolution with my VPN stopped working suddenly. I hadn't explicitly made any changes or installed any updates or software. Perhaps an automatic update broke things.

    Though the VPN still connected fine, and though the interface binding order HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\LanmanServer\Linkage\Bind was properly updated on connection of the VPN (i.e. the VPN's interface was added to the top of the list),
    NSLOOKUP would use my LAN's DNS servers rather than the VPN's DNS servers. The VPN client was however showing properly-configured DNS servers.

    In my case I was unable to open TCP/IPv4 properties for the "SonicWALL NetExtender" interface: the "Properties" button was displayed as being active, but clicking on it did nothing / did not open a properties dialog.

    So instead I went to TCP/IPv4 properties for my Ethernet interface, clicked Advanced, and unchecked "Automatic metric", and assigned an arbitrary metric of 100.

    After doing this DNS resolution once again works properly: When the VPN is connected the VPN interface's DNS servers are used. When the VPN is not connected, the Ethernet interface's DNS servers are used.
     
    drueter, Aug 21, 2020
    #2
  3. Win 10: DNS resolution of remote network via VPN connection not working

    I can confirm that I also have the issue. To resume:

    - Windows VPN does not try to resolve hostnames with the remote DNS, with or without split-tunneling enabled. It always uses the DNS defined on the local network card.

    - Issue is new to Windows 10, Windows 8.1 was working correctly with the exact same VPN configuration.

    - Split-tunneling has nothing to do with the issue as the local DNS setting is used in both scenarios to resolve hostnames which is wrong. Hostnames should be resolved by the remote DNS. By the way, there is a bug in the VPN GUI of Win 10, it is not possible
    to access the dialog to change the split-tunneling configuration. It can only be done through PowerShell.

    - Even if IPV6 might be involved in the issue, I have never touched the default IPV6 config under Win 8.1 and DNS always worked correctly. It should be the same with Win 10.

    - With nslookup we can clearly see that it uses the DNS of the NIC and not the one pushed by the VPN. nslookup under Win 8.1 uses the VPN defined DNS.

    Microsoft, please address this issue as this is a showstopper for enterprises using the integrated Windows VPN. It is broken!

    UPDATE 1: problem is actually a bit different than what I thought, DNS resolution works IF you don't use the FQDN of the internal machine you want to reach. The funny thing is that "ping mymachine" will return as a result "mymachine.mycompany.com".
    But trying to ping "mymachine.mycompany.com" does not resolve since it uses the locally defined DNS. So the problem is with the DNS filter, it does not use the DNS suffix search list to decide where the DNS query should be sent.

    UPDATE 2: problem is not specific to Windows VPN, SonicWALL NetExtender VPN has the same issue. So it's the DNS resolver which is common to all VPNs that has the issue.

    UPDATE 3: DirectAccess is also not working, also seems related to the DNS issue. Looking at the DirectAccess Troubleshooter log there are various unresolved hostname errors.
     
    Louis-Philippe Normandin, Aug 21, 2020
    #3
  4. Knoxx29 Win User

    Always On VPN DNS resolution problem

    Vpn ( trusted Vpn)

    Hi everyone.
    I am not an expert about Vpn and that's why I would like to know if someone could list me a few trusted Vpns, I would really appreciate any suggestion/ advice.

    Thanks.
     
    Knoxx29, Aug 21, 2020
    #4
Thema:

Always On VPN DNS resolution problem

Loading...
  1. Always On VPN DNS resolution problem - Similar Threads - Always VPN DNS

  2. DNS external resolution design

    in Windows 10 Software and Apps
    DNS external resolution design: I am designing a new AD infrastructure for a global company. How would you do the external DNS resolution design? I dont want the DCs forwarding to the external egress servers. What options do I have: DNS caching windows machine in the DMZ for each regions, or would a...
  3. Always On VPN

    in Windows 10 Network and Sharing
    Always On VPN: Looking for some consensus around the Tunnel options for Always on VPN my first thought is that using them in parallel would be the most secure option ? Appreciate any feedback on other users experiences based on a user group 6k+...
  4. Weird DNS resolution

    in Windows 10 Network and Sharing
    Weird DNS resolution: Hello, I have a domain name, let's say, mydomain.com, properly configured with its public DNS. I pointing to local device @home. So i have entries like www.mydomain.com, xxx.mydomain.com etc... Eerything is working fine. To avoid going out of my local network to come...
  5. Windows 10 AlwaysOn VPN & DNS registration/resolution

    in Windows 10 Network and Sharing
    Windows 10 AlwaysOn VPN & DNS registration/resolution: Hi there, I'm setting up AlwaysOn VPN device tunnel with split tunnelling. All clients are Windows 10 Enterprise 1909, RRAS servers are Windows Server 2019 Standard. XML profile is push through Microsoft Endpoint Management custom configuration profile. By custom profile...
  6. Always on VPN?

    in Windows 10 Network and Sharing
    Always on VPN?: Hello, I have setup a VPN server. Is it possible to have a always on VPN connection? Like, if I connect my laptop to the internet, it will instantly connect to the VPN and will not disconnect? Even if I disconnect, it should reconnect again. Is that possible? 128623
  7. Always on VPN

    in Windows 10 Network and Sharing
    Always on VPN: Hello, I have a issue with Always on VPN. Some user can not connect to Always ON VPN, it says "There are no more Files" and when i check in Logbook the time connection was made i get error code 18. Before it helped just to upgrade Windows version to 1809 but even in that...
  8. Always On VPN ipv4 address DNS Registration

    in Windows 10 Network and Sharing
    Always On VPN ipv4 address DNS Registration: Hi, We have implemented Always on VPN (User tunnel) and everything is working as expected. Just only one caviate which we have noticed is that VPN client IP4 address will not register in DNS until we manually select these two boxes on the VPN connection adapter settings....
  9. VPN always on DNS config

    in Windows 10 Network and Sharing
    VPN always on DNS config: Hi All, Windows10 client (1703) / RRAS 2016 Our VPN solution requires that we honor our split DNS configuration. We deliver our VPN configuration via an XML. our intended split dns configuration is: <DomainNameInformation> <DomainName>.splitdomain.com</DomainName>...
  10. VPN Problems Change DNS

    in Windows 10 Network and Sharing
    VPN Problems Change DNS: I create a VPN windows built, and cant change the DNS on tcp/ip propreties. Dont open. Anyone can test it? PS: Im on virtual machine. 10127

Users found this page by searching for:

  1. alwaysonvpn disable automatic metric