PDA

View Full Version : Perl and IP Addresses


Moonlight
04-04-1999, 09:27 PM
Hi,

I would like to know if there is any way to have the converted IP address into its proper name.

ie: Instead of showing 1.2.3.4, it would show something like : abc.yourhere.com

I tried to use the :
$ENV{'REMOTE_HOST'}
but it returns empty.
There is no ENV called REMOTE_HOST

The only one I can use is REMOTE_ADDR which is the IP address.

Thanks.

Moonlight
http://www.togrc.com

hearts
04-04-1999, 10:40 PM
please don't kill me for intruding on your question.. but i have a question to go with your question...

would this work?
$ENV{'DOCUMENT_URI'}";

plainly guessing... sorry.