It would return a status code the resolver returns when it performs a DNS query.
For instance, c-ares passes its status code in resolution callbacks, so this status code would be returned in the CURLINFO_RESOLVER_CODE. So, if something goes wrong with host name resolution, this code will give a hint why the resolver failed. -----Original Message----- From: Daniel Stenberg <dan...@haxx.se> Sent: Sunday, April 17, 2022 2:56 AM To: Dmitry Karpov via curl-library <curl-library@lists.haxx.se> Cc: Dmitry Karpov <dkar...@roku.com> Subject: Re: Feature request about curlinfo option returning resolver status/error code On Fri, 15 Apr 2022, Dmitry Karpov via curl-library wrote: > So, I propose to add a new CURLINFO_RESOLVER_CODE info option, which > will return the resolver status/code from the resolver backends that > provide such codes (primarily c-ares). > > If libcurl core maintainers and community agree that it will be a > useful feature, I can create a PR. What values do you propose CURLINFO_RESOLVER_CODE would return ? -- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html