[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Webilizer 2.01 PKG install - setup Country Resolves?



On Sat, 2001-12-29 at 12:40, Hemant Arora wrote:
    Dear Nigel,
    
    As far as I know is you need to switch on the HostNameLookup ON in
    httpd.conf. By default its OFF and it records IP no's rather than domain
    name. Once its ON the next time webalizer generate the report It will show
    you the Country Pie chart.
Yikes!  Don't do this, there's a better way.  If you do this, you will
slow your server way down, and in some cases, people may not be able to
see websites on your server! (for instance, reverse lookups fail or go
very slow).

All webalizer 2 versions have reverse DNS lookups built in.  THerefore
it will resolve the names in the logfile automatically when the log
files are processed.  

In your webalizer.conf file, set the following options:
DNSChildren 5
	You can go as high as 20 without too much problem.  
	If you have 512 MB Ram or more do 20, otherwise do 5 - 10.
DNSCache /home/webalizer/cache.dns

Those two options will cause webalizer to process the log files twice,
once to resolve the IP address and store them in a cache file, the
second time to create the reports as usual, using the DNS name in the
cache instead of the ip address.

Processing log files will take 2-3 times longer than normal, but
hopefully you're processing your log files during your off peak hours.

I documented this a while back at www.bearfruit.org and you can get more
information at www.mrunix.com/webalizer and
ftp://ftp.mrunix.net/pub/webalizer/DNS.README

Matt Nuzum