A new install of the popular website statistics program AWStats was not showing the resolved IP addresses for the visitors to the website.
Looking at the list of website visitors each entry was shown as an IP address.
AWStats has a configuration file awstats.conf, located at the root of the AWStats installation directory. Looking down through this file there is a section for DNSLookup.
The DNSLookup section is copied below.
# If you want to have hosts reported by name instead of ip address, AWStats # need to make reverse DNS lookups (if not already done in your log file). # With DNSLookup to 0, all hosts will be reported by their IP addresses and # not by the full hostname of visitors (except if names are already available # in log file). # If you want/need to set DNSLookup to 1, don't forget that this will reduce # dramatically AWStats update process speed. Do not use on large web sites. # Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6). # Note: Result of DNS Lookup can be used to build the Country report. However # it is highly recommanded to enable the plugin 'geoipfree' or 'geoip' to # have an accurate Country report with no need of DNS Lookup. # Possible values: # 0 - No DNS Lookup # 1 - DNS Lookup is fully enabled # 2 - DNS Lookup is made only from static DNS cache file (if it exists) # Default: 2 # DNSLookup=2
By default the value was set to 2.
I found that to enable the website visits to be resolved to their DNS readable value I needed to change the value of the awstats setting from the default value of 2 to 1 (DNS lookup is fully enabled).
With the DNS lookup value changed updating the settings was effective on new entries, older ones were still down as IP addresses.


