Squid proxy server ignoring hosts file :(

Using: Squid Cache version 2.7.STABLE3 for i686-pc-winnt ...

Whatever I put into the hosts file, it seems to be ignoring it.

here's my configuration :-

...
hosts_file c:\windows\system32\drivers\etc\hosts
...

And yep - i'm restarting squid each time i change (and save) the hosts file and yep, i've 10x checked the hosts file is the same as the one listed in the config file.

Does anyone else have this problem? I'm not even sure how i can debug it. Right now, i'm using the command line squid and squidclient to try and see what's going on, but i keep getting X-Squid-Error: ERR_DNS_FAIL 0.

Please help!


Solution 1:

Use forward slashes (/), rather than backslashes, to separate your path components.