Lines Matching refs:hostname
277 const char *hostname, in fetch_addr() argument
284 size_t entry_len = create_hostcache_id(hostname, 0, port, in fetch_addr()
357 const char *hostname, in Curl_fetch_addr() argument
365 dns = fetch_addr(data, hostname, port); in Curl_fetch_addr()
470 const char *hostname, in Curl_cache_addr() argument
489 hostlen = strlen(hostname); in Curl_cache_addr()
498 entry_len = create_hostcache_id(hostname, hostlen, port, in Curl_cache_addr()
512 memcpy(dns->hostname, hostname, hostlen); in Curl_cache_addr()
642 bool Curl_host_is_ipnum(const char *hostname) in Curl_host_is_ipnum() argument
648 if(Curl_inet_pton(AF_INET, hostname, &in) > 0 in Curl_host_is_ipnum()
650 || Curl_inet_pton(AF_INET6, hostname, &in6) > 0 in Curl_host_is_ipnum()
686 const char *hostname, in Curl_resolv() argument
696 size_t hostname_len = strlen(hostname); in Curl_resolv()
698 (curl_strequal(&hostname[hostname_len - 6], ".onion") || in Curl_resolv()
699 curl_strequal(&hostname[hostname_len - 7], ".onion."))) { in Curl_resolv()
713 dns = fetch_addr(data, hostname, port); in Curl_resolv()
716 infof(data, "Hostname %s was found in DNS cache", hostname); in Curl_resolv()
758 if(Curl_inet_pton(AF_INET, hostname, &in) > 0) { in Curl_resolv()
760 addr = Curl_ip2addr(AF_INET, &in, hostname, port); in Curl_resolv()
768 if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) { in Curl_resolv()
770 addr = Curl_ip2addr(AF_INET6, &in6, hostname, port); in Curl_resolv()
780 if(Curl_inet_pton(AF_INET, hostname, &in) > 0) in Curl_resolv()
787 if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) in Curl_resolv()
800 if(strcasecompare(hostname, "localhost") || in Curl_resolv()
801 tailmatch(hostname, ".localhost")) in Curl_resolv()
802 addr = get_localhost(port, hostname); in Curl_resolv()
805 addr = Curl_doh(data, hostname, port, &respwait); in Curl_resolv()
815 addr = Curl_getaddrinfo(data, hostname, port, &respwait); in Curl_resolv()
837 dns = Curl_cache_addr(data, addr, hostname, 0, port, FALSE); in Curl_resolv()
894 const char *hostname, in Curl_resolv_timeout() argument
929 return Curl_resolv(data, hostname, port, TRUE, entry); in Curl_resolv_timeout()
993 rc = Curl_resolv(data, hostname, port, TRUE, entry); in Curl_resolv_timeout()
1344 !dns->hostname[0] || Curl_host_is_ipnum(dns->hostname)) in show_resolve_info()
1350 (dns->hostname[0] ? dns->hostname : "(none)"), dns->hostport); in show_resolve_info()
1482 data->state.async.hostname); in Curl_resolver_error()