Re: 2.5 and the DNS

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 29 Aug 2002 19:34:21 +0200

Chemolli Francesco (USI) wrote:
> Hello.
> I'm moving my servers to a new DNS setup
> (goodbye, Microsoft, hello BIND), and I noticed
> that squid tends to repeat the same query multiple
> times, even when the value is obviously in the
> internal DNS cache.

Yes.

> Has some bug crept in somehow? Or is it intentional
> (i.e. when receiving a query, regardless of whether
> the DNS data is in cache, a DNS query is performed
> "just in case"?)

It is a misfeature..

When there is no valid DNS cache entry Squid automatically fires off another
query even if one was sent very recently. There is currently no merging of
DNS queries for different requests.

This makes the design simpler and timeout logics consistent, but is not
optimal.

Regards
Henrik
Received on Thu Aug 29 2002 - 11:34:25 MDT

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