I put this in my /etc/hosts file:
198.252.206.16 stackoverflowtest.com
And when I try stackoverflowtest.com
in my browser, I get this squid error:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://stackoverflowtest.com/
Unable to determine IP address from host name stackoverflowtest.com
The DNS server returned:
Name Error: The domain name does not exist.
This means that the cache was not able to resolve the hostname presented in the URL. Check if the address is correct.
Your cache administrator is webmaster.
Instead of this:
Stack exchange
Couldn't find 198.252.206.16
...
Why squid breaks the hostfile ? Any workaround ?