Lines Matching defs:dns
260 * (as that is what the DNS hash uses) but with 7000 connections that would
399 (data->dns.hostcachetype != HCACHE_GLOBAL)) {
400 /* global dns cache was requested but still isn't */
404 data->dns.hostcache = global;
405 data->dns.hostcachetype = HCACHE_GLOBAL;
408 /* for multi interface connections, we share DNS cache automatically if the
410 else if(!data->dns.hostcache ||
411 (data->dns.hostcachetype == HCACHE_NONE)) {
412 data->dns.hostcache = &multi->hostcache;
413 data->dns.hostcachetype = HCACHE_MULTI;
710 if(data->dns.hostcachetype == HCACHE_MULTI) {
711 /* stop using the multi handle's DNS cache */
712 data->dns.hostcache = NULL;
713 data->dns.hostcachetype = HCACHE_NONE;
1476 struct Curl_dns_entry *dns = NULL;
1488 dns = Curl_fetch_addr(conn, hostname, (int)conn->port);
1490 if(dns) {
1492 conn->async.dns = dns;
1496 infof(data, "Hostname '%s' was found in DNS cache\n", hostname);
1499 if(!dns)
1500 result = Curl_resolver_is_resolved(data->easy_conn, &dns);
1510 if(dns) {
2223 multi->closure_handle->dns.hostcache = &multi->hostcache;
2225 multi->closure_handle->dns.hostcache);
2239 if(data->dns.hostcachetype == HCACHE_MULTI) {
2240 /* clear out the usage of the shared DNS cache */
2241 Curl_hostcache_clean(data, data->dns.hostcache);
2242 data->dns.hostcache = NULL;
2243 data->dns.hostcachetype = HCACHE_NONE;