Re: /etc/hosts parsing support question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 2 Mar 2002 14:47:49 +0100

You are looking for the ipcache (hostname->ip)..

fqdncache is ip->hostname and can only have one name per ip.

Note: in /etc/hosts each name for a single IP traditionally has to be
listed on the same line, with the primary name being the first listed
(primary == the name returned on reverse lookup from IP). Not sure
how Squid does things.

Regards
Henrik

On Saturday 02 March 2002 13:18, Adrian Chadd wrote:
> Hi,
>
> I have someone who wants to do the accelerator host mapping in
> /etc/hosts under squid-2.5, but they're having problems with
> large numbers of entries for a single IP.
>
> Ie,
>
> 1.1.1.1 foo.com www.foo.com
> 1.1.1.1 bar.com www.bar.com
>
> squid doens't keep both in the fqdncache.
>
> I've been fiddling around with trying to _get_ extra entries into
> the fqdncache, but so far I haven't been succesful. Can someone who
> understands the code possibly look at doing this quickly?
>
> Thanks!
>
>
>
> Adrian
Received on Sat Mar 02 2002 - 06:46:12 MST

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