Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8221681 Improved IPv6 Support
  3. JDK-8223737

HostsFileNameService doesn't handle IPv6 literal addresses correctly

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • core-libs
    • None
    • b21

    Description

      For example, ::1 and 0:0:0:0:0:0:0:1 should yield the same output.

      The system property `jdk.net.hosts.file` can be defined to effect InetAddress name and address resolution calls, i.e getByXXX. The value of the system property is a filename that contains the mappings. The structure of this file is equivalent to that of the /etc/hosts file.

      For example:
        10.2.3.4 testHost.testDomain
        ::1 ip6-localhost ip6-loopback

      Attachments

        Issue Links

          Activity

            People

              aeubanks Arthur Eubanks
              aeubanks Arthur Eubanks
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: