I would like to stop Apache (2.2) from doing reverse lookups for client IP addresses. I have
HostnameLookups Off
and
LogFormat "%h %l %u %t %V \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" port:%p" combined_vhost
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
in httpd.conf but Apache still in many cases often does the lookups and writes down domain names instead of IP addresses into accesslogs.
I need the IPs from accesslogs to block them on firewall.
If it is not possible to set this up in Apache config., maybe it can be done in the bind config. On the machine I need to fix, bind runs as local recursive resolver.
The domain names are useless because they can't be resolved back to the original IP address (seems there is intentional lack of usual DNS A/AAAA record for these domain names).