On 10/19/25 06:01, Daniel Stenberg wrote:
> On Sat, 18 Oct 2025, Demi Marie Obenour via curl-library wrote:
> 
>> Should distros build with c-ares by default?  I'm wondering if getaddrinfo() 
>> is just too poor an interface.
> 
> Yes, getaddrinfo is a terrible interface and getaddrinfo_a is not helping.
> 
> Unfortunately, doing a 100% functional drop-in replacement for getaddrinfo 
> has 
> turned out to be a really difficult task. Several distros have through times 
> tried to ship curl built with c-ares for this reason, but so far everyone has 
> eventually had to back down from that decision because of some special edge 
> case where c-ares did not behave like getaddrinfo.
> 
> With luck, one future day c-ares has gotten all of those problems ironed out 
> and we can switch to a proper asynchronous name resolver more universally...

Personally I think all distros should ship a validating resolver that
listens on loopback.  c-ares could then talk to it.

In the future it might make sense for curl to use systemd-resolved's
D-Bus API or the ncsd IPC API.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)

Attachment: OpenPGP_0xB288B55FFF9C22C1.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to