RE: [squid-users] Implication of positive_dns_ttl?

From: Cafe Admin <[email protected]>
Date: Fri, 28 Nov 2003 20:19:15 -0500

Thanks Henrik.
I'm using Squid 2.5.Stable3 RPM for RH9. How do I tell whether it was
compiled with the --disable-internal-dns option?
Also, where can I find the patch (and instruction on how to apply the patch)
to force squid to cache positive dns longer.
Can I apply the patch to my current RPM binary? Excuse my ignorance; I'm
still learning my way around with Squid and Linux.
Thanks.

-----Original Message-----
From: Henrik Nordstrom [mailto:hno@squid-cache.org]
Sent: Friday, November 28, 2003 4:44 PM
To: Cafe Admin
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Implication of positive_dns_ttl?

On Fri, 28 Nov 2003, Cafe Admin wrote:

> Hi all,
> I'm using the default "positive_dns_ttl 6 hours" in my squid.conf. Does
this
> mean that Squid will overide all DNS ttl and cache every successfull DNS
> lookup for at least 6 hours?

If your Squid is not compiled with the default internal DNS client
(--disable-interna-dns not used) then the positive_dns_ttl parameter is
not used at all by Squid. Instead the TTL value given by DNS is used.

There is a patch to make Squid-2.5 use this parameter as a upper limit on
DNS TTL for positive caching.

> Is there a means to force positive DNS lookup to be cached longer than
> the ttl provided by the host domain? Thanks.

If you build Squid with --disable-internal-dns then DNS TTL information
will not be available to Squid and the positive_dns_ttl will be used.

Regards
Henrik
Received on Fri Nov 28 2003 - 18:19:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:21:42 MST