In the first paragraph of the "AddressCache" section of net-properties.html it is stated that reverse lookup results are also cached.
The java.net.InetAddress class only caches forward lookup (name lookup) results. Reverse lookup (address lookup) results are not cached.
"java/net/doc-files/net-properties.html" should be updated to match the source code, and the description of "networkaddress.cache.ttl" and "networkaddress.cache.negative.ttl" provided in the same section.
The java.net.InetAddress class only caches forward lookup (name lookup) results. Reverse lookup (address lookup) results are not cached.
"java/net/doc-files/net-properties.html" should be updated to match the source code, and the description of "networkaddress.cache.ttl" and "networkaddress.cache.negative.ttl" provided in the same section.
- relates to
-
JDK-8154834 DNS name lookup cache policy not respected when calling InetAddress.getHostName() from IP address
- Closed
-
JDK-6656822 InetAddress does not cache reverse DNS lookups
- Open