title: curl - How to set up TTL for dns cache & How to clear the curl cache
body: <p>In this link at the last it mentions</p>
  
  <pre><code>http://comments.gmane.org/gmane.comp.web.curl.library/40895
  </code></pre>
  
  <p>libcurl uses its DNS cache by default as long as you re-use the handle. You 
  can change the time it'll hold entries in the cache - it is only meant to aid 
  "spikes" or rapid requests to the same host names as it doesn't get the "true" 
  TTL values.</p>
  
  <p>I have gone through all the documentation of curl <a href="http://curl.haxx.se/docs/manpage.html" rel="nofollow">http://curl.haxx.se/docs/manpage.html</a>  but I could not find any way to change the time (TTL) curl hold entries in the cache.</p>
  
  <p><strong>How to set</strong> the curl cache item holding-time &amp; <strong>how to clear</strong> the curl cache?</p>