cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Feature Requests-2943341 ] rfe: hooks for external DNS resolution

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 31 Jan 2010 22:39:01 +0000

Feature Requests item #2943341, was opened at 2010-01-31 20:11
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=2943341&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Charles Kerr ()
Assigned to: Daniel Stenberg (bagder)
Summary: rfe: hooks for external DNS resolution

Initial Comment:
Many large distributions do not compile libcurl with c-ares, making DNS lookup unavoidably blocking. However there are other tools available for nonblocking DNS resolution, such as libevent's evdns module. I don't know why OSes don't build libcurl with c-ares, but it would be moot if libcurl had hooks for delegating DNS resolution to another tool.

Alternately maybe libcurl could require c-ares rather than leaving it as an option, but surely that's been discussed before, and there are probably reasons for leaving it as an optional requirement.

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2010-01-31 23:39

Message:
I'm moving this to become a feature-request and not a bug. But in reality
nothing much will happen unless you bring this topic to the curl-library
mailing list, preferably with a will to do parts of the development
yourself.

distros don't use c-ares because c-ares is still not a feature-complete
replacement for the normal libc-based name resolver.

adding "hooks" to allow apps to do the DNS resolving with whatever code
they want would perhaps be cool, but it isn't just a single entry-point or
anything but a whole set of functions would be needed. In fact, all you
need is to "emulate" a set of c-ares functions and you're set.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350976&aid=2943341&group_id=976
Received on 2010-01-31

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET