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

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 15
    • 15
    • core-libs
    • Verified

      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.

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

              Created:
              Updated:
              Resolved: