/etc/hosts is only used if you build squid with --disable-internal-dns,
or is brave enough to try the Squid-2.5 snapshots.
--disable-internal-dns will disable the built-in DNS client of Squid and
instead rely on the OS provided resolver (which uses /etc/nsswitch.conf
as usual..).
Squid-2.5 knows about the existense of /etc/hosts and will read this in
addition to using DNS, giving /etc/hosts higher priority than DNS.
Regards
Henrik Nordström
Squid Hacker
Graziano Sommariva wrote:
>
> Hello,
>
> I'm testing squid 2.4STABL2 over a linux system 7.0.
>
> It works fine ,but it does not resove internal hosts defined in
> /etc/hosts file even I have the record "hosts: files dns" in
> /etc/nsswitch.
>
> Why?
>
>
> Best regards,
>
> Graziano.
>
>
>
Received on Tue Sep 25 2001 - 16:41:37 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:02:29 MST