Squid 2.7 in offline_mode yet tries to contact DNS servers to resolve addresses

Posted by William C on Server Fault See other posts from Server Fault or by William C
Published on 2011-01-12T06:22:21Z Indexed on 2011/01/12 6:55 UTC
Read the original article Hit count: 196

Filed under:

I installed Squid 2.7 to act as a web cache on my laptop, so that I can browse previously-visited sites when I don't have WiFi. Except http_access allow all, I've made no changes to the default squid.conf configuration.

When I turn offline_mode ON and disconnect from the Internet, and then I visit sites, I encounter

The following error was encountered:

Unable to determine IP address from host name for whatever.sitename.com
The dnsserver returned:

Timeout

on any site I visit.

What settings do I need to add to squid.conf so I can browse sites offline?

© Server Fault or respective owner

Related posts about squid