title: what is the purpose of Java level DNS caching?
body: <p>Currently I am working on an <code>Android</code> project. I have a doubt regrading java level <strong>DNS</strong> caching. Through search, I came to know that through calling the below mentioned functions we can achieve it.</p>
  
  <pre><code> System.setProperty( "networkaddress.cache.ttl", "0" );
   System.setProperty( "networkaddress.cache.negative.ttl", "0" );
  </code></pre>
  
  <p>Based on this, it caches name look up data or not. I want to know the purpose or impact because of this property. </p>