Re: [squid-users] local hosts file

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 30 Mar 2001 15:32:19 +0200

Squid-2.2 uses your OS gethostbyname() call, which in most
configurations reads /etc/hosts before DNS, but can usually be
controlled via /etc/nsswitch.conf or a similar file.

Squid-2.3 defaults to use an internal DNS client implementation, talking
directly to your DNS server.

Squid-2.4 too defaults to using an internal DNS client, but reads
/etc/hosts on startup (I think, or maybe this is only in Squid-2.5?).

If you prefer the old Squid-2.2 method for DNS lookups then Squid-2.3+
can be "downgraded" to the old mechanism by building it with
--disable-internal-dns.

--
Henrik Nordstrom
Squid hacker in need of paid Squid projects
GolfelsR@ee.nec.de wrote:
> 
> Dear all,
> 
> In my opionion only  the 2.2 versions of Squid support local hosts file. Is
> this correct? Or do you know a way to enable local hosts files in newer
> versions?
> 
> best regards
> 
> Ralf Golfels
> 
>  --------------------------------------------------------
> >>>>>>>>>>>>> NEC Electronics (Europe) GmbH <<<<<<<<<<<<<
> 
> Department: EISC
> 
> Ralf Golfels
> Network Admin
> Oberrather Str. 4
> 40472 Duesseldorf
> Germany
> 
> Phone:    +49 211 6503 478
> Fax:      +49 211 6503 6478
> mailto:GolfelsR@ee.nec.de
> 
> >>>>>>>>>>>>>>>>>>> http://www.nec.de  <<<<<<<<<<<<<<<<<<
> 
> **** Disclaimer ****
> 
> The information in this email may be confidential.
> 
> It is intended only for the use of the named recipient.
> 
> If you are not the intended recipient please notify us immediately.
> 
> You should not disclose the contents to any other person, nor take any copies.
> 
> Thank you, NEC Electronics (Europe) GmbH
Received on Fri Mar 30 2001 - 06:49:12 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:59:03 MST