RE: [squid-users] cacheDnsSvcTime to high? value = 10142

From: Stuart Clark <[email protected]>
Date: Sun, 23 Mar 2003 23:09:56 +1100

I looked a bit further and found this in the cache.log

Any ideas?
Should I have an acl entry for localhost DNS?

2003/03/23 21:41:56| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:43:20| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:44:24| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:45:52| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:47:01| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:48:11| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:49:13| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:50:39| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:51:48| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:52:50| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:54:32| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:55:34| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:56:38| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:57:46| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:58:47| WARNING: Reply from unknown nameserver [127.0.0.1]
2003/03/23 21:59:52| WARNING: Reply from unknown nameserver [127.0.0.1]

Kind regards
Stuart Clark

-----Original Message-----
From: Stuart Clark [mailto:newsgroup1@spacelink.com.au]
Sent: Sunday, 23 March 2003 1:49 PM
To: squid-users@squid-cache.org
Subject: [squid-users] cacheDnsSvcTime to high? value = 10142

Hi

Just wondering what cacheDnsSvcTime relates to.
I thought it meant the average time in milliseconds that squid takes to
get a DNS request. But the values that I'm getting indicate around 10
seconds.

Strange because if I do a nslookup on the squid box it resolves
instantly

Why?
What values are you getting?

[root@taz xinetd.d]# snmpwalk -m /home/mrtg/scripts/mib.txt
XXX.XXX.XXX.XXX -p 3401 public cacheDnsSvcTime
enterprises.nlanr.squid.cachePerf.cacheProtoStats.cacheMedianSvcTable.ca
cheMedianSvcEntry.cacheDnsSvcTime.1 = 10142
enterprises.nlanr.squid.cachePerf.cacheProtoStats.cacheMedianSvcTable.ca
cheMedianSvcEntry.cacheDnsSvcTime.5 = 10142
enterprises.nlanr.squid.cachePerf.cacheProtoStats.cacheMedianSvcTable.ca
cheMedianSvcEntry.cacheDnsSvcTime.60 = 10142

Machine Specifications

Celeron 1.2 GHZ
512 RAM
1 x scsi 4 GIG (ext3)
1 x ATA100 70 GIG (ext3)
Redhat 7.3
squid-2.4.STABLE6-6.7.3.rpm
bind-9.2.1-1.7x.2
vmlinuz-2.4.18-26.7.x
Swap space 1 gig
Total size of cache storage 28gig

My squid box is running about 55 gig of traffic per month

The CPU runs at 2% or less

[root@proxy root]# cat /etc/squid/squid.conf | grep -v ^# | grep -v ^$

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin ?
no_cache deny QUERY
cache_mem 32 MB
cache_swap_low 35
cache_swap_high 40
maximum_object_size 10000 KB
maximum_object_size_in_memory 8 KB
cache_dir ufs /cache 4800 16 256
cache_dir ufs /cache3 73000 16 256
cache_access_log /var/log/squid/access.log
acl PURGE method PURGE
acl snmppublic snmp_community public
acl taz src XXX.XXX.XXX.XXX/255.255.255.255
acl spacelink src 203.166.63.0/255.255.255.0
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow spacelink
http_access allow PURGE localhost
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny PURGE
http_access deny all
icp_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
snmp_port 3401
snmp_access allow snmppublic taz
snmp_incoming_address 0.0.0.0
snmp_outgoing_address 255.255.255.255
Received on Sun Mar 23 2003 - 05:10:11 MST

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