How to configure DNS caching using networkaddress.cache.ttl ?
Issue
- How to set the value and what is a recommended value for the TTL -
networkaddress.cache.ttl
? - What is the
JRE
caching policy forJBoss EAP 6
with oracleJDK 1.7
? Is itforever
or does it time out? If it does time out what is that value ? - Will the JBoss container cause any issues if the
JVM
DNS caching was turned off viajava.security.Security.setProperty("networkaddress.cache.ttl","0")
?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7
- 6
- OpenJDK, Oracle Java
- 1.8
- 11
- 1.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.