Try the function: gethostbyaddr
or you could use: http://search.cpan.org/author/JHI/perl-5.8.0/lib/Net/hostent.pm On Thu, 2003-01-23 at 13:21, dan wrote: > Hey > > I need a method that resolves Hostmasks into IP's, and IP's into hosts. I > can do the former, with: > > sub resolve { > return inet_ntoa(scalar gethostbyname("@_")); > } > $data = resolve("host.mask.com"); > > However, if I give it an IP address, it will just return nothing, even if > the IP address is resolvable. Is there as module to do this, or a set of > scripts? > > Help much appreciated > > Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]