if(!conn->async.dns) {
/* a name was not resolved */
- if(timedout) {
+ if(timedout || (conn->async.status == ARES_ETIMEOUT)) {
failf(data, "Resolving host timed out: %s", conn->name);
rc = CURLE_OPERATION_TIMEDOUT;
}
else if(conn->async.done) {
- failf(data, "Could not resolve host: %s", conn->name);
+ char **dummy=NULL; /* stupid never-used ares-thing */
+ failf(data, "Could not resolve host: %s (%s)", conn->name,
+ ares_strerror(conn->async.status, dummy));
rc = CURLE_COULDNT_RESOLVE_HOST;
}
else