[squid-users] caching dns requests external cache dns program

From: Brendan Keessen <[email protected]>
Date: Tue, 11 Dec 2001 11:32:31 +0100

Hello,

I'm using the external dns program to resolve httpd_accel_host to the
local ip address for which Squid accelerates. I'm not using /etc/hosts
because I didn't got that to work but I'm using a cache_dns_program
which returns mainly the local ipaddress. I have got 5 dns server progs
running and my problem is that they sometimes are getting overloaded as
I can see in the squid cache log:

2001/12/11 09:24:44| WARNING: All dnsserver processes are busy.
2001/12/11 09:24:44| WARNING: 5 pending requests queued
2001/12/11 09:24:44| Consider increasing the number of dnsserver processes in your config file.
2001/12/11 09:31:36| dnsSubmit: queue overload, rejecting portal.telegraafnet.nl

When I strace one of the dns processes they are getting a lot off requests
(that is true because the site is accessed a lot):

this is a part of the strace:

read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21
read(0, "portal.telegraafnet.nl\n", 4096) = 23
write(1, "$addr 0 127.64.78.85\n", 21) = 21

I got the positive_dns_ttl configured at 6 hours. Why isn't the dns
result cached?

Thanks again,
Brendan
Received on Tue Dec 11 2001 - 03:32:33 MST

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