Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to use addresses defined in my hosts file while using Tor. I have the Tor (non-browser) bundle installed: Tor, Polipo and Vidalia. I do not use Torbutton. My browsing is normally done through Firefox with FoxyProxy configured to use Polipo (, though I occasionally use other applications, sometimes directly through Tor (

Specifically, in my Hosts file, I have definitions such as modem and router. Those work when using a direct connection, but when I go through Tor on FoxyProxy they never resolve. A workaround with FoxyProxy is to blacklist those particular addresses (http://modem/*, http://router/*), but this does not solve for other programs and cannot be easily done with the thousands of addresses SpyBot adds to the hosts file.

Is there a way to force Tor to look at the hosts file before passing DNS requests through to the network? Forcing Tor to run all DNS requests locally (i.e. through my hosts file, then my ISP - the Windows defined order) is also acceptable. A fix on Polipo's side of things is useful, but I'd prefer one for Tor.

This question is similar to Tor config to ignore LAN hosts, however not all the addresses in my hosts file are local.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.