skcin7
04-08-2010, 10:56 PM
Hello. I am trying to perform a reverse DNS (rDNS) lookup so that I can get information about users that visit my site. The information I want to get is: IP Address, ISP, Organization, Hostname, Connection, Assignment, City, Region, Country, and any other similar information.
I can easily use PHP to get the IP address by using $_SERVER['REMOTE_ADDR'] and hostname by using gethostbyaddr(). However, what I want to do is a little more difficult.
I asked my professor and he said it can be done in Perl which is why I am posting the question here.
What I want is extremely similar to what is done at http://whatismyipaddress.com/.
Thanks in advance for any help.
I can easily use PHP to get the IP address by using $_SERVER['REMOTE_ADDR'] and hostname by using gethostbyaddr(). However, what I want to do is a little more difficult.
I asked my professor and he said it can be done in Perl which is why I am posting the question here.
What I want is extremely similar to what is done at http://whatismyipaddress.com/.
Thanks in advance for any help.