cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to use DNS cache in curl

From: Jesse Nicholson <ascensionsystems_at_gmail.com>
Date: Thu, 14 Nov 2013 14:06:59 -0500

Pretty sure you have to be using c ares for this feature to work. You can
set DNS servers for the threaded resolver (c Ares) and it will cache
results I believe according to standards aka the TTL on the resource record.
On Nov 14, 2013 2:04 PM, "Mathew Marulla" <matt_m_at_me.com> wrote:

> Wasn't aware of a built-in DNS cache. Very interested to see a reply.
>
> - Matt
>
> On Nov 14, 2013, at 12:57 AM, "Gaurav Rastogi -X (garastog - ARICENT
> TECHNOLOGIES MAURIITIUS LIMITED at Cisco)" <garastog_at_cisco.com> wrote:
>
> Hi,
>
>
>
> I want to use DNS caching feature of curl as currently every time I make
> https request a DNS request is sent.
>
> Due to this my performance is downgraded and also sometimes DNS takes too
> much time due to which my https requests timeouts.
>
> Let me know with an example how to enable DNS caching in CURL.
>
>
>
> Regards
>
> Gaurav
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-11-14