Preferrence of DNS servers from VPN issue (DNS Leak)


  1. Posts : 5
    Win10
       #1

    Preferrence of DNS servers from VPN issue (DNS Leak)


    Hello,

    when I connect to VPN, I receive DNS servers, but windows primarily uses DNS servers configured on my LAN connection (checked with nslookup). This is problem when I am accessing same hostname, which has internal IP in VPN.

    I tried to change network adapters order in ncpa.cpl, but it does not seem to be working. It displays still same order despite of how I change it and confirm with OK.

    Checking in regedit, HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Linkage\Bind,
    after connecting VPN, one entry gets added on top of the list, I assume that is dialed connection.

    Setting DNS servers manually in VPN does not work, I am unable to edit procotol settings in VPN connection.

    Anyone have some solution for this ?
      My Computer


  2. Posts : 9,790
    Mac OS Catalina
       #2

    What software are you using for the VPN connection?
      My Computer


  3. Posts : 5
    Win10
    Thread Starter
       #3

    builtin in windows. I tried IKEv2 and L2TP/ipsec, both behave same way.
      My Computer


  4. Posts : 1
    W10
       #4

    The problem is actually from the vpn providers side, not yours.

    I provide custom made vpn servers designed for security, that solves this problem your facing too (speedwayvpn.com).

    I created a trial ovpn certificate for you to prove to you once connected using our vpn servers, your problem is gone

    dropbox link to ovpn file:
    Dropbox - myrred.ovpn

    username: marv
    password: marv

    PS, supported protocols (L2TP/IPSEC(PSK), SSTP, OpenVPN)
      My Computer


  5. Posts : 1
    windows 10
       #5

    This again.


    marv said:
    Hello,

    when I connect to VPN, I receive DNS servers, but windows primarily uses DNS servers configured on my LAN connection (checked with nslookup). This is problem when I am accessing same hostname, which has internal IP in VPN.

    I tried to change network adapters order in ncpa.cpl, but it does not seem to be working. It displays still same order despite of how I change it and confirm with OK.

    Checking in regedit, HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Linkage\Bind,
    after connecting VPN, one entry gets added on top of the list, I assume that is dialed connection.

    Setting DNS servers manually in VPN does not work, I am unable to edit protocol settings in VPN connection.

    Anyone have some solution for this ?
    I am having this same issue. I don't require any extra "Services." I want to know how to fix this "Windows" problem. I am using pptp to vpn into an office network. When my vpn connects to the network, The internet connection drops on the active network connection.
      My Computer


  6. Posts : 5
    Win10
    Thread Starter
       #6

    I am using my own vpn server to connect to my home network and server was pushing dns servers to client, as they were visible in connection details when connected, but thanks. Besides, in Windows 7 is everything working.

    I found workaround on technet forums.

    Edit manually file
    C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Network\Connections\Pbk\rasphone.pbk

    in desired connection, add dns server IPs in lines
    IpDnsAddress=
    IpDns2Address=

    After that, system resolves my internal DNS entries.
      My Computer


  7. Posts : 1
    Windows 10
       #7

    Sorry to resurrect a necro thread but I did find a solution to this issue.

    Manually setting the metric on both your local network connection and the VPN works and forces Windows to use whatever DNS is provided by the VPN (give a lower metric to the VPN connection). For example I set my Ethernet IPv4 metric to 20 and the VPN connection to 10. nslookup confirms that Windows is now using the remote VPN DNS for public suffixes.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:36.
Find Us




Windows 10 Forums