diff --git a/lib/hostip.c b/lib/hostip.c index e335ca0fc7..d92999a650 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -932,8 +932,9 @@ enum resolve_t Curl_resolv_timeout(struct Curl_easy *data, else timeout = (timeoutms > LONG_MAX) ? LONG_MAX : (long)timeoutms; - if(!timeout) - /* USE_ALARM_TIMEOUT defined, but no timeout actually requested */ + if(!timeout || data->set.doh) + /* USE_ALARM_TIMEOUT defined, but no timeout actually requested or resolve + done using DoH */ return Curl_resolv(data, hostname, port, TRUE, entry); if(timeout < 1000) {