On Tue, 15 Mar 2005, Dave Mangot wrote:

Is this possible? Squid keeps looking up the real www.example.com and
trying to connect to that. We want it to just look in it's /etc/hosts file and
ignore DNS completely. It should only resolve from /etc/hosts.

Squid by default reads /etc/hosts on startup, and any entries found there will override DNS.


If you want to disable the use of DNS entirely then build Squid with --disable-internal-dns and then configure your server without DNS (/etc/nsswitch.conf on most OS:es)

Regards
Henrik

Reply via email to