Lines Matching refs:hostname
281 const char *hostname,
287 /* Create an entry id, based upon the hostname and port */
288 size_t entry_len = create_hostcache_id(hostname, 0, port,
349 * it discovers the handle in the state WAITRESOLVE whether the hostname
352 * lookups for the same hostname requested by different handles.
361 const char *hostname,
369 dns = fetch_addr(data, hostname, port);
474 const char *hostname,
492 hostlen = strlen(hostname);
500 /* Create an entry id, based upon the hostname and port */
501 entry_len = create_hostcache_id(hostname, hostlen, port,
511 memcpy(dns->hostname, hostname, hostlen);
641 bool Curl_host_is_ipnum(const char *hostname)
647 if(Curl_inet_pton(AF_INET, hostname, &in) > 0
649 || Curl_inet_pton(AF_INET6, hostname, &in6) > 0
685 const char *hostname,
695 size_t hostname_len = strlen(hostname);
697 (curl_strequal(&hostname[hostname_len - 6], ".onion") ||
698 curl_strequal(&hostname[hostname_len - 7], ".onion."))) {
712 dns = fetch_addr(data, hostname, port);
715 infof(data, "Hostname %s was found in DNS cache", hostname);
757 if(Curl_inet_pton(AF_INET, hostname, &in) > 0) {
759 addr = Curl_ip2addr(AF_INET, &in, hostname, port);
767 if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0) {
769 addr = Curl_ip2addr(AF_INET6, &in6, hostname, port);
779 if(Curl_inet_pton(AF_INET, hostname, &in) > 0)
786 if(Curl_inet_pton(AF_INET6, hostname, &in6) > 0)
799 if(strcasecompare(hostname, "localhost") ||
800 tailmatch(hostname, ".localhost"))
801 addr = get_localhost(port, hostname);
804 addr = Curl_doh(data, hostname, port, &respwait);
814 addr = Curl_getaddrinfo(data, hostname, port, &respwait);
836 dns = Curl_cache_addr(data, addr, hostname, 0, port);
893 const char *hostname,
928 return Curl_resolv(data, hostname, port, TRUE, entry);
992 rc = Curl_resolv(data, hostname, port, TRUE, entry);
1135 /* Create an entry id, based upon the hostname and port */
1248 /* Create an entry id, based upon the hostname and port */
1298 /* Wildcard hostname */
1326 !dns->hostname[0] || Curl_host_is_ipnum(dns->hostname))
1332 (dns->hostname[0] ? dns->hostname : "(none)"), dns->hostport);
1465 data->state.async.hostname);