squid and dns lookups

Matthew Miller mattdm at mattdm.org
Sat Jul 29 00:39:36 UTC 2006


On Fri, Jul 28, 2006 at 03:32:12PM -0500, Gregory P. Ennis wrote:
> Is there a way to turn off dns lookups for local network queries?
> We have one of our PC's set up as an internal (local network) web
> server.  The PC is listed in each of the other linux machines /etc/hosts
> file with a local network ip address.  When squid is turned off it is
> easy for the network PC's to access the internal web pages by putting in
> the name of the server in the address bar.  When squid is turned on each
> user gets the message that it can not be found.  
> Since the machine functioning as the apache server is inside the local
> network it is not listed in the dns servers.  When squid is function the
> query fails.  Is there a way to put an entry in the squid.conf file so
> that named queries can point back to the local network even though a dns
> record does not exist?

Do you have the option of making a proxy autoconfig file (such as used by
Firefox)? In that case, you could simply configure it so those hosts are
accessed directly without even involving squid. 
-- 
Matthew Miller           mattdm at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-list mailing list