We all know that
access.log file logs the access Info of Squid:
1286536351.746 41762 192.168.1.17 TCP_MISS/200 5340945 GET http://v15.lscache3.c.youtube.com/videoplayback? - DIRECT/18.104.22.168 video/x-flv 1286536351.746 41762 192.168.1.18 TCP_MISS/200 5340945 GET http://v15.lscache3.c.youtube.com/videoplayback? - DIRECT/22.214.171.124 video/x-flv
We all also know that Squid use the file
/etc/resolv.conf to determine the DNS server it is dealing with, so if we want Squid to deal with a local DNS server we enter the local DNS server in the file
What if the local DNS server has a record like this (in its reverse zone (1.168.192.in-addr.arpa)):
$TTL 60 ; 1 minute 17 PTR Mark. 18 PTR Mike.
Can I configure Squid to do a reverse lookup (asking about the name of the IP address in the log file) and add the names to the
access.log record, for example:
I want to make this record:
1286536351.746 41762 192.168.1.17 ......
to be something like this:
1286536351.746 41762 192.168.1.17 Mark ......
How can I reach this?
Can I use Squid logformats like
%>A to get what I want?