Re: [squid-users] DNS Traffic

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 30 Sep 2004 23:26:18 +0200 (CEST)

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
Received on Thu Sep 30 2004 - 15:26:24 MDT

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