Re: [squid-users] FQDN on some subnets only

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 30 Sep 2006 01:30:37 +0200

fre 2006-09-22 klockan 09:36 -0500 skrev Kulig, Peter:

> I just set up SquidNT 2.6.STABLE3-NT for a portion of our userbase. I
> would like to log FQDNs instead of IPs, but I'm only able to do this
> on the 192.168.0.x and 192.168.1.x subnets.

If there is a problem using %>A in some network then define two log
formats, one for the networks where you can log FQDNs, the other where
you can only log IPs.

%>A FQDN, or IP if not found
%>a IP

But in most cases it's better to fix your DNS to properly return failure
on FQDN lookups of your networks where you don't provide FQDN details..

You can then select which requests to log by which format using the
access_log directive.

Regards
Henrik

Received on Fri Sep 29 2006 - 17:30:42 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:04 MDT