With NJVM, the java.net.Inet.Address.getLocalHost().getHostName() call returns the name of the NetWare server. To obtain the fully qualified domain (DNS) name, (FQDN) of the local host, use the following in your program:
InetAddresslocalHost=InetAddress.getByName(InetAddress.getLocalHost() .getHostAddress() );
The object, localhost, now contains the correct FQDN and can be obtained via the localhost.getHostName call.