My Tech Notes
Search This Blog
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment