RE: [squid-users] squid to resolve local domain with out seeing /etc/hosts
> > Hi all, > > I have installed squid and is working fine for many days. > Recently we shifted our web server to a IP say 172.16.2.80. > > but the system in which squid is running has in its /etc/hosts file > > 172.16.0.1 webserver > > I want this entry not to be changed becos of some > other purpose. > > so now if anybody browse webserver thru squid it is pointing > to 172.16.0.1 > as webserver. > > How can I make squid not to look in to /etc/hosts file and > should resolve > the local domains also thru DNS only.. > You can't because squid is designed just for that; to be able to resolve local domains via /etc/hosts. You are turning the world, somewhat around. Make sure that hosts and or dns names are unique whether defined in /etc/hosts or not. Then your problem vanishes. So the 'other purpose' should be implemented in a more transparant way on your Intranet. M.
RE: [squid-users] squid to resolve local domain with out seeing / etc/hosts
In your squid.conf add a line like: hosts_file none Chris -Original Message- From: Mrs. Geeta Thanu [mailto:[EMAIL PROTECTED] Sent: Thursday, December 02, 2004 1:35 AM To: [EMAIL PROTECTED] Subject: [squid-users] squid to resolve local domain with out seeing /etc/hosts Hi all, I have installed squid and is working fine for many days. Recently we shifted our web server to a IP say 172.16.2.80. but the system in which squid is running has in its /etc/hosts file 172.16.0.1 webserver I want this entry not to be changed becos of some other purpose. so now if anybody browse webserver thru squid it is pointing to 172.16.0.1 as webserver. How can I make squid not to look in to /etc/hosts file and should resolve the local domains also thru DNS only.. Pls guide me regds Geetha
RE: [squid-users] squid to resolve local domain with out seeing / etc/hosts
Thanks chris. when i included the line "hosts_file none" it worked fine and the problem is solved. regds Geetha On Thu, 2 Dec 2004, Chris Robertson wrote: > In your squid.conf add a line like: > > hosts_file none > > Chris > > -Original Message- > From: Mrs. Geeta Thanu [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 02, 2004 1:35 AM > To: [EMAIL PROTECTED] > Subject: [squid-users] squid to resolve local domain with out seeing > /etc/hosts > > > Hi all, > > I have installed squid and is working fine for many days. > Recently we shifted our web server to a IP say 172.16.2.80. > > but the system in which squid is running has in its /etc/hosts file > > 172.16.0.1 webserver > > I want this entry not to be changed becos of some > other purpose. > > so now if anybody browse webserver thru squid it is pointing to 172.16.0.1 > as webserver. > > How can I make squid not to look in to /etc/hosts file and should resolve > the local domains also thru DNS only.. > > Pls guide me > > > regds > Geetha >