-
Bug
-
Resolution: Won't Fix
-
P5
-
None
-
1.1.5, 1.2.0
-
x86, sparc
-
solaris_2.5.1, solaris_2.6, windows_nt
Name: pk39325 Date: 08/05/97
Under NIS+, the canonical name for hosts is typically their unqualified
hostname, i.e., server rather than server.domain.org. This is done to appease
NIS+. This behavior causes calls to InetAddress.getLocalHost().getHostName()
to return the unqualified name.
It would be nice if the FQDN was returned. If this would break the spec,
then a getDomainName() method would be appreciated. I haven't been
able to find a way in Java to determine the domain name for these NIS+
hosts. This would have to be supplied by a native call or perhaps a
system property.
======================================================================
- duplicates
-
JDK-4109291 java.net.InetAddress.getHostName works wrong on Solaris
- Closed