ADDITIONAL SYSTEM INFORMATION :
Java 17 Corretto 17.0.10
A DESCRIPTION OF THE PROBLEM :
With this class it is possible to set the ttl for dns cache.
But I'd like to set the ttl per hostname.
Like: neworkaddress.cache.specific.ttl=some.host.com:5;other.host.com:15
In some format of a set to be able to give multiple custom host names, and have networkaddress.cache.ttl for the global settings.
Reason is: for some hosts you use, you might know that the IP is not changing, or not that frequently, but some are changing in few secs. Setting globally 5 sec for what you use might be an overkill.
Please consider this as improvement idea for next possible release. (If not yet proposed already.)
Java 17 Corretto 17.0.10
A DESCRIPTION OF THE PROBLEM :
With this class it is possible to set the ttl for dns cache.
But I'd like to set the ttl per hostname.
Like: neworkaddress.cache.specific.ttl=some.host.com:5;other.host.com:15
In some format of a set to be able to give multiple custom host names, and have networkaddress.cache.ttl for the global settings.
Reason is: for some hosts you use, you might know that the IP is not changing, or not that frequently, but some are changing in few secs. Setting globally 5 sec for what you use might be an overkill.
Please consider this as improvement idea for next possible release. (If not yet proposed already.)