• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

DNS of webpage visitors

A

altexis

Guest
hi all

I want to know if it is possible to find the DNS of the users visiting a webpage.

The apache logs (access_log) contain only the IP.. but is there a place that a DNS is also recorded?
 
in etc/httpd/conf/httpd.conf find
Code:
HostnameLookups Off
and change to On. Note that this lowers speed somewhat (extra lookup).
 
I see.. thanks AlleyKat.

So I suppose that web statistic programs (like Urchin) scan for changes in the modification dates of access_log and lookup the DNSs themselves? because my server has HostnameLookups Off

Or is there any other more direct way of apache to inform a program when someone visits a webpage?
 
I've no idea about how Webalizer would take this change - in AWstats I can have AWstats itself make the lookups, and thats the only place I want them looked up so thats what I use. Ofcourse it only moves the 'consumes time' problem to AWstats instead (still a better method IMHO), but my logs are easier to read with IP's I think.

So it all comes down to why you need it/what you need it for, you see. :)
 
Back
Top