How does libcurl resolve host names?
libcurl supports a large a number of different name resolve functions. One of them is picked at build-time and will be used unconditionally. Thus, if you want to change name resolver function you must rebuild libcurl and tell it to use a different function. – The non-ipv6 resolver that can use one out of four host name resolve calls (depending on what your system supports): A – gethostbyname() B – gethostbyname_r() with 3 arguments C – gethostbyname_r() with 5 arguments D – gethostbyname_r() with 6 arguments – The ipv6-resolver that uses getaddrinfo() – The c-ares based name resolver that uses the c-ares library for resolves. Using this offers asynchronous name resolves but it currently has no IPv6 support. – The Windows threaded resolver. It use: A – gethostbyname() on plain ipv4 windows hosts B – getaddrinfo() on ipv6-enabled windows hosts Also note that libcurl never resolves or reverse-lookups addresses given as pure numbers, such as 127.0.0.1 or ::1.
libcurl supports a large a number of different name resolve functions. One of them is picked at build-time and will be used unconditionally. Thus, if you want to change name resolver function you must rebuild libcurl and tell it to use a different function. – The non-ipv6 resolver that can use one out of four host name resolve calls (depending on what your system supports): A – gethostbyname() B – gethostbyname_r() with 3 arguments C – gethostbyname_r() with 5 arguments D – gethostbyname_r() with 6 arguments – The ipv6-resolver that uses getaddrinfo() – The c-ares based name resolver that uses the c-ares library for resolves. Using this offers asynchronous name resolves but it currently has no IPv6 support. – The Windows threaded resolver.
Related Questions
- How can I resolve the ERROR] threat-detection statistics host number-of-rate 0 threat-detection statistics host number-of-rate 0 ^ % Invalid input detected at ^ marker error message?
- Can we get the names and contact information of other churches that have used Peacemakers to resolve congregational conflicts?
- How does libcurl resolve host names?