How to readirect DNS requests via proxy on Windows 10?

postcd

Member
Hello,

i read this article when someone use OpenVPN, DNS requests can go unproxified which is usually unwanted:
https://medium.com/@ValdikSS/beware-of-windows-10-dns-resolver-and-dns-leaks-5bc5bfb4e3f1#.pokx0lan2
http://www.nish.com/2015/how-to-fix-the-windows-10-dns-resolver-dns-leaks/

Please can You advice how to redirect DNS requests via proxy that i already use at 127.0.0.1:1234 ?

There is a tool that would fit my proxy software: https://github.com/shadowsocks/ShadowDNS but during installation, i got an error that is described here.

So curious if there is any rule/script/app like with Linux IP tables, only for Windows 10? Thank you
 

beers

Moderator
Staff member
What are you using for your VPN? If you default route out through the VPN you can reference external DNS natively and it will be piped through the tunnel.
 

postcd

Member
Thx, i given OpenVPN as an example, in my case i use https://shadowsocks.org
This is the screenshot of the ip routes: https://s20.postimg.org/aowgyjfpp/route_print_win10.gif o_O

ShadowsSocks already work with my web browser the way that webbrowser using my proxy DNS not locally defined DNS.

My Torrent client is also set to work with socks proxy 127.0.0.1:myporthere
And ipleak.net detected also Ip of my proxy when it was testing the torrent connection from me.


Issue is with Windows. Im unsure how to make all DNS connections via proxy 127.0.0.1:myporthere
In network adapter settings / IPv4 / Advanced / DNS i can set 127.0.0.1 as a DNS, but problem is what to do next so it is pointed to my proxy port and works ok? I assume some app would be needed, i found https://sourceforge.net/projects/dns2socks/ which seems to be related, it not reported error, but i was unable to see webpages while my network adapter DNS was 127.0.0.1.
 
Last edited:
Top