cURL / Mailing Lists / curl-library / Single Mail

curl-library

DNS Cache

From: brubelsabs <brubelsabs_at_googlemail.com>
Date: Wed, 06 Aug 2008 11:05:38 +0200

Hi,

with LibCurl I want to check many URLs hence I do that in waves (consits
only of different URLs) so no server will be overloaded. Each wave has
its own multi-handle with its easy handles. At the end of each wave all
handles are cleaned up.

How should I enable a DNS cache? Does it suffice to set
curl_easy_setopt(handle, CURLOPT_DNS_USE_GLOBAL_CACHE, 1); or do I have
to use additionally a share handle?

What does the DNS cache do if it cannot resolve a domain name again and
again? Does it remember that this domain is not resolveable? Is there
some way to look at the DNS cache, or some entry of it?

thanks for your help
Mathias
Received on 2008-08-06