Last Updated: February 25, 2016
·
529
· ddossot

Get active DNS TTL configuration on Oracle JVM

TTL in seconds for successful DNS lookups: sun.net.InetAddressCachePolicy.get()

TTL in seconds for failed DNS lookups: sun.net.InetAddressCachePolicy.getNegative()

Example using the CRaSH shell:

% repl groovy
Using repl groovy
% sun.net.InetAddressCachePolicy.get()
30
% sun.net.InetAddressCachePolicy.getNegative()
10