1

If I look for DNS leaks when using Tor Browser, I find none. For example, if I connect to https://dnsleaktest.com in Tor Browser, using even the most lax of the security settings, the DNS servers that are reported are all completely different than those I usually use from my ISP. In fact, I get the impression that the DNS is provided by the usual DNS service of whatever Tor Exit Node I'm routed through.

In contrast, VPNs on Linux always seem to leak the DNS. Despite testing the advice of numerous different purported solutions (such as this, this and this) I have found none that works, perhaps because the answers to the questions are (or appear at least) to be provided by people who have found ad-hoc solutions rather than by experts in OpenVPN. In particular, no modifications of the relevant OpenVPN config files seems to inhibit leakage of the DNS. Although cursory check with dnsleaktest.com often suggest that the DNS is not being leaked, using the more extensive test that's provided shows that the DNS is actually being served by my regular ISP.

In Windows, the situation is a bit better with regard to using a VPN. The supplied desktop applications of several VPN providers have an option to use their own DNS servers, and no leakage is apparent. Likewise, inserting block-outside-dns into the relevant OpenVPN config file (under Windows) seems to solve the problem.

Questions: (1) Does Tor itself prevent the DNS leak, or is it the total environment provided by the Tor Browser bundle that prevents it? (2) How is the DNS leakage prevented? (3) Is the method transferable to preventing the DNS leak when using a VPN with Linux?

Just to be clear, I'm not the least bit interested in running Tor in conjunction with a VPN, either before, or after the Tor connection. I'm interested in knowing what, if anything, I can learn from Tor that might be transferable to working with a VPN.

1 Answer 1

2
  1. Yes Tor Browser does a great job of preventing DNS Leaks. Even torsock on the Linux CLI does an admirable job of preventing DNS Leaks for Linux CLI apps. I did some testing on my own with several apps and saw this for myself.

If you ever do find a DNS leak, that would be considered to be a major security hole and would be fixed ASAP.

  1. I can't tell you all of the specifics. Contacting the development team directly would be best. Basically it routes all traffic through Tor via a SOCKS5 proxy which includes DNS.

  2. You will hear over and over that it is generally not recommended to use Tor with a VPN. Regardless of whether you use VPN or not, the question is whether the specific app that you are using will use the DNS that you specify or not. Many apps such as Firefox and Chrome will allow SOCK5 with DNS proxy. If that's the case, put in 127.0.0.1:9150 and you'll be considerable safer. If the app doesn't allow that, then you will need to set the proxy in Windows itself. You will need to have the Tor Browser open at all times though to provide the connect to the Tor Network.

It can also be possible that a specific app not have a SOCKS5 proxy option and will ignore the system proxy. If that's the case, you have the decide if running it is something that you want to risk.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .