[squid-users] DNS double query

From: dtom <dtom@dont-contact.us>
Date: Fri, 09 Apr 2004 00:27:21 +0900

Hi,

I am using squid-2.5.STABLE5 on Sun Solaris8. I monitored DNS query and respons by using
snoop command, then snoop showed DNS double query and respons every accessing to internet web site
through squid cache box. I don't think that squid needs to query twice. Why do squid query twice?
My squid configuration is wrong?

Thanks
Tomi

= resolv.conf =
nameserver B.B.B.B C.C.C.C

= squid.conf =
http_port 18080
icp_port 0
cache_peer M.M.M.M parent 10080 7 no-query
cache_peer O.O.O.O parent 8080 7 no-query
cache_peer P.P.P.P parent 10080 7 no-query
cache_peer Q.Q.Q.Q parent 8080 7 no-query
acl QUERY urlpath_regex cgi-bin \? \.asp$ \.cgi$
acl CHU port port1
no_cache deny QUERY
no_cache deny CHU
cache_mem 768 MB
cache_swap_low 93
cache_swap_high 95
maximum_object_size 16384 KB
maximum_object_size_in_memory 32 KB
ipcache_size 16384
ipcache_low 93
ipcache_high 95
memory_replacement_policy heap GDSF
cache_dir diskd /var/squid/var/cache 4096 16 256 Q1=72 Q2=64
cache_access_log /var/squid/var/logs/access.log
cache_log /var/squid/var/logs/cache.log
cache_store_log none
pid_filename /var/squid/var/logs/squid.pid
ftp_user master@sample.com
dns_retransmit_interval 3 seconds
dns_nameservers A.A.A.A B.B.B.B C.C.C.C
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 81 # http81
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
acl EADDR dst D.D.D.D/12 E.E.E.E/16
acl ADOM dstdomain .sample1.com
acl BDOM dstdomain .sample2.com
acl AADDR dst F.F.F.F/21 G.G.G.G/21
acl BADDR dst H.H.H.H/24
acl CADDR dst I.I.I.I/32
acl DADDR dst J.J.J.J/24 K.K.K.K/24 L.L.L.L/24
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
http_access deny DADDR
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_peer_access M.M.M.M allow ADOM SSL_ports
cache_peer_access M.M.M.M allow BDOM SSL_ports
cache_peer_access M.M.M.M allow AADDR SSL_ports
cache_peer_access M.M.M.M allow BADDR SSL_ports
cache_peer_access M.M.M.M deny all
cache_peer_access O.O.O.O allow ADOM !SSL_ports
cache_peer_access O.O.O.O allow BDOM !SSL_ports
cache_peer_access O.O.O.O allow AADDR !SSL_ports
cache_peer_access O.O.O.O allow BADDR !SSL_ports
cache_peer_access O.O.O.O deny all
cache_peer_access P.P.P.P allow !ADOM !AADDR !BDOM !BADDR !EADDR !CADDR SSL_po
rts
cache_peer_access P.P.P.P deny all
cache_peer_access Q.Q.Q.Q allow !ADOM !AADDR !BDOM !BADDR !EADDR !CADDR !SSL_p
orts
cache_peer_access Q.Q.Q.Q deny all
cache_effective_user nobody
cache_effective_group nogroup
visible_hostname sample
logfile_rotate 1
always_direct allow EADDR
always_direct allow CADDR
never_direct allow all
error_directory /usr/local/squid/share/errors/Japanese
coredump_dir /var/squid/var/cache
ignore_unknown_nameservers off
Received on Thu Apr 08 2004 - 09:24:37 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Apr 30 2004 - 12:00:02 MDT