[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Re: MacPerl-Digest V1 #73



At 17.22 -0400 1999.05.05, Zachary Burnham wrote:
>I'm trying to create a chunk of code that will take an IP and return the
>appropriate hostname for that IP.

  use Socket;
  my $name = gethostbyaddr(inet_aton($ip_address), AF_INET);

This is in the Perl Cookbook, an invaluable resource.  Recipe 17.7.  There
is more to the recipe to find more hostnames for that IP address.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org