Lines Matching refs:host
131 static struct addrinfo *gethostinfo(char const *host, int exitnoname);
139 const char *country, *host;
146 country = host = NULL;
151 host = ANICHOST;
154 host = PNICHOST;
157 host = ABUSEHOST;
163 host = FNICHOST;
166 host = GNICHOST;
169 host = optarg;
172 host = INICHOST;
175 host = IANAHOST;
178 host = KNICHOST;
181 host = LNICHOST;
184 host = MNICHOST;
190 host = PDBHOST;
196 host = RNICHOST;
213 if (!argc || (country != NULL && host != NULL))
217 * If no host or country is specified, rely on referrals from IANA.
219 if (host == NULL && country == NULL) {
220 if ((host = getenv("WHOIS_SERVER")) == NULL &&
221 (host = getenv("RA_SERVER")) == NULL) {
233 whois(*argv, host != NULL ? host :
257 gethostinfo(char const *host, int exit_on_noname)
267 error = getaddrinfo(host, port, &hints, &res);
269 err(EX_NOHOST, "%s: %s", host, gai_strerror(error));
363 * after a new host have been added.
422 char *buf, *host, *nhost, *p;
488 host = p;
491 if (strncmp(hostname, host, p - host) != 0)
493 (int)(p - host), host);