Page 1 of 1

Fix Windows10 DNS Leak (trac#605)

Posted: Wed Sep 16, 2015 11:16 am
by Traffic
Due to the way Windows10 insists on using ALL configured DNS servers (see):
topic19634.html#p54826

Has anybody found a way to save the default DNS settings and replace them with OpenVPN pushed DNS servers:
https://community.openvpn.net/openvpn/ticket/605#ticket

It would be great if somebody could find a suitable solution.

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Thu Sep 17, 2015 10:51 pm
by Traffic
Brevity demands this:
superuser: How can I over-ride Windows10 default DNS Servers

A little more searching found a promising method:
superuser: Change DNS with script

Adapt for Windows 10 using batch: netsh>

OpenVPN.Client: --up script
  • Save current DNS settings to file.
  • Delete current DNS settings on eth0/wlan0 etc (if possible ..)
  • Leave only DNS settings on tun0
OpenVPN.Client: --down script
  • Restore saved DNS setting from file
I do not have access to W10 to develop this ..

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Mon Sep 21, 2015 3:21 pm
by Traffic
Has anybody tried this on W10 ?
https://www.dnsleaktest.com/how-to-fix-a-dns-leak.html

Particulary "Solution B - Manually clearing the DNS" ?

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Thu Sep 24, 2015 10:01 am
by ValdikSS
Traffic wrote:Has anybody tried this on W10 ?
https://www.dnsleaktest.com/how-to-fix-a-dns-leak.html

Particulary "Solution B - Manually clearing the DNS" ?
Manual solution doesn't work because it's a bit outdated but the script works fine.

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Sat Sep 26, 2015 8:06 am
by Georg850
Traffic wrote:Has anybody tried this on W10 ?
https://www.dnsleaktest.com/how-to-fix-a-dns-leak.html

Particulary "Solution B - Manually clearing the DNS" ?
Not working, after you did manual clearing, still leaking.

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Tue Oct 06, 2015 11:36 am
by Traffic
At this time, if you use W10 and have a DNS leak we ask that you try this:
https://community.openvpn.net/openvpn/t ... comment:16

Please let us know your experience.

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Mon Nov 02, 2015 5:15 pm
by Georg850
Traffic wrote:At this time, if you use W10 and have a DNS leak we ask that you try this:
https://community.openvpn.net/openvpn/t ... comment:16

Please let us know your experience.
Work for me fine, just follow instructions from VladikSS.
This guy keep doing for our comminity big things.

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Wed Nov 11, 2015 10:20 pm
by BakerT
Anyone get this fix working? Still having issues with DNS leaking on our windows clients connecting to our Access Server.
How do I get the fix working for OpenVPN Connect?

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Thu Nov 12, 2015 5:58 am
by TiTex
i didn't have a chance to test this to know it has any effect , but maybe somebody can let us know
if you change the order of the adapters , would it behave the same way ?

Image

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Thu Nov 12, 2015 11:33 am
by Traffic
TiTex wrote: didn't have a chance to test this to know
Did you take the time to read the entire trac ?

Re: Fix Windows10 DNS Leak (trac#605)

Posted: Tue Apr 25, 2017 2:51 am
by TinCanTech
I hear there is a version 2 for this now ..