On Thu, 8 Dec 2022, Daniel Stenberg via curl-library wrote: > Sure. That should be fairly easy even! The "struct ares_addrinfo" contains > TTL data.
Yes, the c-ares seems to be a front runner for async resolvers with many good features that it provides. So, we can probably take its structures like ares_addrinfo as a model for the "high-end" resolver (maybe typedefing them to hide "ares") and use them instead of more limiting "low-end" structures of getaddrinfo. This will allow libcurl to provide such a very nice feature like DNS TTL honoring at least with c-ares, which is very popular and frequently used combination (or any other potential feature rich async resolver), while keeping the current limitation for less powerful resolvers. Thanks, Dmitry Karpov -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html