[squid-users] how can I configure squid to do a reverse lookup?

2014-06-03 Thread Nidal Shater


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 ..

and
 we all 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 (like BIND) we put the local DNS server address in the file 
/etc/resolv.conf

what if the local DNS server has a record like this ( in its revers zone 
(1.168.192.in-addr.arpa)):

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

I want to make this record ( in the access.log file):

125213512.746 41762 192.168.1.17 .. 

to be something like that:
125213512.746 41762 192.168.1.17 Mark .. 


Is there any configuration step that I can do to make Squid do that?

any help will be appreciated  

Re: [squid-users] how can I configure squid to do a reverse lookup?

2014-06-03 Thread Antony Stone
On Tuesday 03 June 2014 at 18:50, Nidal Shater wrote:

 the local DNS server has a record like this
 
 $TTL 60 ; 1 minute
 17PTR Mark
 18PTR Mike
 
 I want to make this record ( in the access.log file):
 
 125213512.746 41762 192.168.1.17 ..
 
 to be something like that:
 125213512.746 41762 192.168.1.17 Mark ..

Try creating your own log format using both %a and %A

http://www.squid-cache.org/Doc/config/logformat/


Regards,


Antony.

-- 
#define SIX 1+5
#define NINE 8+1

int main() {
printf(%d\n, SIX * NINE);
}
- thanks to ECB for bringing this to my attention

 Please reply to the list;
   please don't CC me.