Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4069806

InetAddress contains unqualified host names when running under NIS+

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.1.5, 1.2.0
    • core-libs
    • 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.
      ======================================================================

            ywangsunw Yingxian Wang (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: