Since "struct ares_addrinfo" is always allocated internally to c-ares, as long as any new members are added to the *end* of the structure, it should be ABI compatible to add some sort of flags for that purpose without much issue.

On 1/16/25 3:50 AM, Daniel Stenberg via c-ares wrote:
Hey,

Related to my desire to get the HTTPS record for a hostname, it would be awesome if I could figure out if an ares_getaddrinfo() result was satisfied by /etc/hosts so that I could avoid asking for a HTTPS resource for that.

Is it possible already? Should/could we do that? Thoughts?

--
c-ares mailing list
c-ares@lists.haxx.se
https://lists.haxx.se/mailman/listinfo/c-ares

Reply via email to