How can I resolve a machine name from an IP address? The machine that the
script is running on is NT4.
I've tried this (with use Socket qw(:DEFAULT :crlf); at the top of the
script)
$machine_name = gethostbyaddr(inet_aton($userIP), AF_INET) or die "Can't
resolve $userIP: $!\n"
It works on the L
>-Original Message-
>From: John Edwards [mailto:[EMAIL PROTECTED]]
>
>
>How can I resolve a machine name from an IP address? The
>machine that the
>script is running on is NT4.
>
>I've tried this (with use Socket qw(:DEFAULT :crlf); at the top of the
>script)
>
>$machine_name = gethost
Hey John,
My MUA believes you used Internet Mail Service (5.5.2655.55)
to write the following on Tuesday, April 30, 2002 at 9:32:33 AM.
JE> How can I resolve a machine name from an IP address? The machine
JE> that the script is running on is NT4.
JE> I've tried this (with use Socket qw(:DEFAULT
On Tuesday, April 30, 2002, at 06:32 , John Edwards wrote:
[..]
> $machine_name = gethostbyaddr(inet_aton($userIP), AF_INET) or die "Can't
> resolve $userIP: $!\n"
>
> It works on the LAN, but not across a router to the remainder of our WAN.
> Any ideas?
My complements to Tim Musson <[EMAIL PROT
gination encircles the world." -- Albert Einstein [1879-1955]
-Original Message-
From: John Edwards [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 9:33 AM
To: Perl Beginners ([EMAIL PROTECTED])
Subject: Name resolution from IP
How can I resolve a machine name from an IP addre