In Perl
sub normalizeHostname($)
{
my $hostValue = shift;
my $rtn = gethostbyaddr(inet_aton($address), AF_INET)
print STDERR "DEBUG - rtn = " . $rtn . "\\n";
}
In Java
private String normalizeHostName(String hostname) throws UnknownHostException
{
String rtn = java.net.InetAddress.getByName(hostname).getHostName();
return rtn;
}
Okay, my question is why am I getting two different answers? Same system, executed from the same command line.