Domain access logs stopped resolving IP addresses

DianeV

Member
Apr 11, 2007
7
0
151
RESOLVED: Domain access logs stopped resolving IP addresses

Ages ago when I got my server, I set up the domain access logs in /home/domlogs to resolve IP addresses to domain names so that I could tell, sort of, who was accessing each website. This would be like this:

This:
111.222.333.444 - - [31/May/2010:08:11:32 -0400]

gets resolved to this:
cpe-111-222-333-444.carolina.res.rr.com - - [31/May/2010:08:11:32 -0400]

But recently, some but not all of the domain logs are no longer getting resolved to domain names.

Unfortunately, I'm not sure how or where I originally set this up (nor why some, but not all, of the domain logs are no longer resolving), and staring for hours at the WHM Tweak Settings and other settings has not enlightened me.

Can anyone share a tip here?
 
Last edited:

DianeV

Member
Apr 11, 2007
7
0
151
If anyone cares, I finally remembered how I got the IP addresses to resolve. Originally, I was hand-editing the httpd.conf but cPanel doesn't make that too easy or too viable a practice, so I gave that up. But my hosting provider distilled my old httpd.conf into the new one some time back. That worked, but got wiped out by a recent cPanel update. So he just did it again, and all is solved. The line is below; just change HostnameLooksup to On.

LINE 59 of httpd.conf:
---
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., Welcome! - The Apache Software Foundation (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off