In a message dated 11/11/2002 9:16:10 AM Eastern Standard Time, 
[EMAIL PROTECTED] writes:


> was wondering if there is a module or someone may know of a quick means of 
> convering a IP address to a host/domain address.

$ip = $ENV{'REMOTE_ADDR'};
@digits = split (/\./, $ip);
$address = pack ("C4", @digits);
$host = gethostbyaddr ($address, 2);

Reply via email to