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
Written by David Dossot
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cache
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#