Forum OpenACS Q&A: Response to How to get host names insted of IP addresses in the access log?

something like this:

[ns/server/md2/module/nslog]
EnableHostnameLookup=On
File=/home/aol30/log/md2.log
LogCombined=On
LogRefer=Off
LogUserAgent=Off

Note that this will absolutely crush your speed - every access will take a nslookup (which I assume is exec'd, not in the threaded code); some kind of blocking will take place when trying to nslookup from slow DNS servers; and you might get long-delayed failures from DHCP addresses or people behind NAT.

A much better approach is to do DNS substitution afterwards - when you're analyzing your log files or whatever it is you intend to do with them. There are some excellent log analyzers that will do this simple task for you; as for me, I just home-brew some perl when I need a log question answered.

good luck!