Re: hostnames in log?

From: Ong Beng Hui <ongbh@dont-contact.us>
Date: Sun, 30 Jun 1996 23:20:05 +0800 (SST)

> Been using Squid b7 on a trial basis and I'm wondering if there is a code
> hack to get hostnames into our access log rather than the IP no's. We're
> only allowing access from a limited range of IP's for our downstream
> sites.

Having FQDN instead of a IP means that for every request,
there will be a DNS lookup. And that might be costly.

> We do a lot of cache logfile processing from our exising CERN files for
> billing reasons and hostnames would be nice...
> i.e foo (not foo.manawatu.gen.nz) instead of 202.36.148.70

I would suggest that you might modify the logfile processing
script to convert the IP to FQDN via gethostbyaddr. I think
it is better this way because you can perform the processing
on another machine, and at off peak hour.

*8)
Ong Beng Hui
ongbh@singnet.com.sg
...Yet Another Day in a ISP Business
...and they lived happily ever after
Received on Sun Jun 30 1996 - 08:22:40 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:32 MST