diff --git a/lib/hostip.c b/lib/hostip.c
index 29d395d0ac330fc2679dc91a0bb5706a0d558264..1ad6951f3fb82fff76952d0fb94c40c4cc9da3a6 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -218,11 +218,13 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
   }
 #endif
 
+#if 0
   /* If the host cache timeout is 0, we don't do DNS cach'ing
      so fall through */
   if (data->set.dns_cache_timeout == 0) {
     return Curl_getaddrinfo(data, hostname, port, &bufp);
   }
+#endif
 
   time(&now);