curl_setopt($_h, CURLOPT_DNS_USE_GLOBAL_CACHE, false );
curl_setopt($_h, CURLOPT_DNS_CACHE_TIMEOUT, 2 );

整理自:http://stackoverflow.com/questions/1341644/curl-and-https-cannot-resolve-host

Related Posts: curl-DNS缓存设置 :