Re: [squid-users] DNS Traffic

From: Hendrik Voigtländer <hendrik@dont-contact.us>
Date: Thu, 30 Sep 2004 23:58:26 +0200

Henrik Nordstrom wrote:
> On Thu, 30 Sep 2004, John wrote:
>
>> I have two squid proxies running on IBM X345 series servers under Red Hat
>> Enterprise Linux ES Version 3.0. My colleagues manage two QIP DNS servers
>> and since we introduced the squid proxies the DNS servers seem to be
>> taking
>> a lot more DNS queries tan before. When I look at the squid logs, it
>> seems
>> that every URL is being resolved by DNS rather than the DNS resolution
>> entries being cached locally by squid.
>
>
> Then your ipcache settings are not correct.
>
> By the default settings Squid caches up to 900 DNS lookups (90% of 1024).
>
>> My query is, should squid be caching DNS entries and not hammering the
>> DNS servers and if so, how is this done? I should add that I am using
>> squids own internal DNS resolver program not an external one.
>
>
> Good.
>
>> What I would like to be able to do, through the squid config, is to
>> set aside a certain amount of memory to hold cached DNS entries and to
>> specify how long to keep them before deeming them to be "stale". Is
>> this possible in squid and if so, how is it controlled?
>
>
> See the ipcache_* directives.
>
> Regards
> Henrik

Hello,

how about caching-only bind sitting on the same machines as the
squid-daemons? resolv.conf points to localhost in this setup.
Deploying a local caching nameserver is mentioned in several performance
howtos (after setting up the ipcache the right way of course).

Regards, Hendrik Voigtländer
Received on Thu Sep 30 2004 - 16:19:12 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:03 MDT