- 
    Sub-task 
- 
    Resolution: Delivered
- 
     P4 P4
- 
    15
- 
        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.
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.