Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8244958 preferIPv4Stack and preferIPv6Addresses do not affect addresses returned by HostsFileNameService
  3. JDK-8248328

Release Note: Filtering and Ordering of Addresses Returned by Alternative Hosts File Name Service Provider

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Verification:
      Verified

      Description

      In this release, the behavior of `InetAddress.getAllByName` has been modified when the alternative hosts file name service is selected .

      The JDK allows specifying an alternative host's file name service by using the `jdk.net.hosts.file` system property. The implementation of the alternative name service has been changed to take into account the values of the `java.net.preferIPv4Stack` and `java.net.preferIPv6Addresses` system properties. This affects the results returned by `InetAddress.getAllByName` when the host's file name service is selected.
      For details about `java.net.preferIPv4Stack` and `java.net.preferIPv6Addresses`, see [Networking Properties](https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/net/doc-files/net-properties.html) in the API documentation.

        Attachments

          Activity

            People

            Assignee:
            aefimov Aleksej Efimov
            Reporter:
            aefimov Aleksej Efimov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: