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:

No comments:

Post a Comment