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]

Reply via email to