in reply to Resolving an IP to its hostname
use Socket; my $name = gethostbyaddr(inet_aton($address), AF_INET); [download]
andyford or non-Perl: Andy Ford