Squid not checking hosts file? :(
Posted on 2001-08-19
my squid caching program is not checking my /etc/hosts file and by default it should be :( How can i please check / fix this?
I've modifed my /etc/hosts (as root) and added a score of ip's that point to localhost ... eg. image.ads.fairfax.com.au 127.0.0.1 so if the proxy is asked to get an something from image.ads.faifax.com.au then it try to find it on the local machine, instead of the real one. This is a poor spam advertisment filter method ;)
If i ping image.ads.fairfax.com.au, it pings 127.0.0.1.
if i connect to there with netscape, no proxy, it connects to localhost (apache). If i turn proxy ON, in netscape, it connects to the real website.
Please help :(
I can list any /etc/squid/squid.conf or /etc/host* if this helps?
Also, i'm sure my bindings is Hosts, DNS, NIS+, NIS+. (but don't quote me on that becuase i'm not TOO sure if where i checked that is correct).