JDK-4850869 : GetCanonicalHostName is broken on SuSe Linux 8.0.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2003-04-18
  • Updated: 2003-04-18
  • Resolved: 2003-04-18
Related Reports
Duplicate :  
Description
% telnet lexington
Trying 10.5.35.85...
Connected to lexington.
Escape character is '^]'.
Welcome to SuSE Linux 8.0 (i386) - Kernel 2.4.18-4GB (6).
....
% uname -a
Linux lexington 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown
% setenv JAVA_HOME /net/cady/export/dtf/unified/stable-jdk/linux-i586
% ${JAVA_HOME}/bin/java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
% ${JAVA_HOME}/bin/javac -d . IPGlobals.java
% ${JAVA_HOME}/bin/java tonga.util.IPGlobals
InetAddress.getHostName()=lexington
InetAddress.getCanonicalHostName()=10.5.35.85
10.5.35.85

The result should have included a fully qualifed domain name.  Source code is attached.
The problem is very specific to SuSe Linux.

###@###.### 2003-04-18