My Tech Notes
Enable DNS cache for Java applications
To enable DNS cache, there are two options:
Enable Java in-memory DNS cache by setting JVM security property:
networkaddress.cache.ttl
to a positive integer (of seconds).
Enable operating system's DNS cache (and no change to Java security property.
networkaddress.cache.ttl=-1
by default).
See also:
Java Network Properties
Setting the JVM TTL for DNS Name Lookups
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment