Server Fault is a question and answer site for system and network administrators. 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 have Squid 2.7-STABLE7 configured as a reverse proxy/accelerator towards our web server(s). At present Squid is trying to resolve hostnames in the requests it receive in order (I think) to find the right web server to contact.

However, I'd rather Squid forwarded ALL requests for those pages it does not have in cache to an Apache server residing on the same node (say,, without attempting any address resolution. Is that possible?

Please note that I don't want to alter /etc/hosts.


share|improve this question

I doubt that behaviour can be changed (it would better to recompile squid with --disable-internal-dns option to entirely disable this feature and not waste resources.)

share|improve this answer
Thanks for the suggestion. I'm not that happy at recompiling, I'd rather use standard packages in my distribution if that's possible. Is there any config option that can be used to disable internal DNS resolution as well? – mmanzato Aug 7 '12 at 9:09

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.