How to configure DNS caching using networkaddress.cache.ttl ?

Solution Verified - Updated -


  • How to set the value and what is a recommended value for the TTL - networkaddress.cache.ttl?
  • What is the JRE caching policy for JBoss EAP 6 with oracle JDK 1.7 ? Is it forever 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 via"networkaddress.cache.ttl","0") ?


  • 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content