[squid-users] How can I make squid ignore cached DNS looks up ?

From: Mark jensen <ngiw2012_at_hotmail.com>
Date: Wed, 11 Jun 2014 17:05:30 +0000

Hello

we all know that access.log file logs the access Info of Squid, something like that:
125213512.746 41762 192.168.1.17 ..............
125213513.746 47616 192.168.1.18 ..............

MY local DNS server has records like this ( in its revers zone (1.168.192.in-addr.arpa)):

$TTL 60 ; 1 minute
17            PTR Mark
18            PTR Mike

I have managed to make this record in the access.log file (using the option "log_fqdn on" and by changing the log format):

125213512.746 41762 192.168.1.17 ..............

to be something like that:

125213512.746 41762 192.168.1.17 Mark ..............

the problem is that the DNS records keep changing ( something like that ):

$TTL 60 ; 1 minute
17            PTR Karl
18            PTR Mike

and

$TTL 60 ; 1 minute
17            PTR Paul
18            PTR Mike

and so on ......

but the squid keep resolving the IP as "Mark", so I guess that Squid use the cached look up so what ever "Mark" change in DNS zone it keeps it "Mark"

My questions are:

1) what is the option who makes Squid cache looks up ?
2) how to stop this option and make Squid keeps ask the DNS and ignore the cache looks up?

                                               
Received on Wed Jun 11 2014 - 17:05:37 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 12 2014 - 12:00:05 MDT