RE: [squid-users] Implication of positive_dns_ttl?

From: Cafe Admin <cafeadmin@dont-contact.us>
Date: Fri, 28 Nov 2003 20:50:01 -0500

I think I found the answer to my first question "How do I tell whether it
was
compiled with the --disable-internal-dns option?" Typing squid -v at the
prompt tells me the squid version in addition to the compile
options. --disable-internal-dns is not listed so I assume the binary was not
compiled with it. Please tell me if I'm looking at the wrong place.

My other questions remain to be answered:

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?

Thanks.

-----Original Message-----
From: Cafe Admin [mailto:cafeadmin@comcast.net]
Sent: Friday, November 28, 2003 8:19 PM
To: squid-users@squid-cache.org
Subject: RE: [squid-users] Implication of positive_dns_ttl?

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:50:20 MST

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