This is most common pb....
I think u didn't specify correct entry
open ur /etc/hosts file
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.100.199 ns1
{In that file ur hostname i.e ns1(your hostname) must be below localhost not below localhost.localdomain..., but the lines which i wrote above looks like that ns1 is below localhost.localdomain but it is not so i.e it is below localhost)
Also in ur previous post u omitted or deleted by mistakenly localhost..., i.e
make the enry like above...i.e localhost must be there after localhost.localdoain...
or u can give entry like this also this is another method
127.0.0.1 localhost.localdomain localhost ns1
U can speciify or choose any above methods to make the entry
1 thing more if u have domain name also means DNS ...then make its entry as welll}
i.e if suppoise ur DOMAINNAME is mysite.com..,& if ur SQUID as well as DNS server is same... then change the entry like this
#vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.100.199 mysite.com ns1
It will work perfectly if u made above entries...
{ when u make entry in /etc/hosts file... , then the hostname must be true }
if u dont know ur hostname .., try the command
#hostname
it will show ur hostname....
Bye
Gaurav[