curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Android: curl return error "couldn't resolve host" when enable c-ares

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 26 Dec 2019 13:38:41 -0500

On 12/26/2019 3:03 AM, Nguyen Khue via curl-library wrote:
> I build curl with option --enable-ares for android application. When I
> run my application, if I don't set dns server then curl always return
> error "couldn't resolve host". I didn't get this error when running on
> the desktop application. How I can fix it?

Do the c-ares test programs work? Do other system programs work to
resolve hosts? Does verbose output [1][2] give you any clue?

[1]: https://curl.haxx.se/docs/manpage.html#-v
[2]: https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-12-26