Lines Matching refs:host
139 const char *host;
153 for (i = 0; try_rir[i].host != NULL; i++)
168 const char *country, *host;
175 country = host = NULL;
180 host = ANICHOST;
183 host = PNICHOST;
186 host = ABUSEHOST;
192 host = FNICHOST;
195 host = GNICHOST;
198 host = optarg;
201 host = INICHOST;
204 host = IANAHOST;
207 host = KNICHOST;
210 host = LNICHOST;
213 host = MNICHOST;
219 host = PDBHOST;
225 host = RNICHOST;
242 if (!argc || (country != NULL && host != NULL))
246 * If no host or country is specified, rely on referrals from IANA.
248 if (host == NULL && country == NULL) {
249 if ((host = getenv("WHOIS_SERVER")) == NULL &&
250 (host = getenv("RA_SERVER")) == NULL) {
262 whois(*argv, host != NULL ? host :
287 gethostinfo(const char *host, const char *hport, int exit_on_noname)
297 error = getaddrinfo(host, hport, &hints, &res);
299 err(EX_NOHOST, "%s: %s", host, gai_strerror(error));
393 * after a new host have been added.
452 char *buf, *host, *nhost, *nport, *p;
534 host = p;
536 if (p > host) {
540 (int)(p - host), host);
582 for (i = 0; try_rir[i].host != NULL; i++) {
585 strcasecmp(try_rir[i].host, hostname) == 0)
589 strcasecmp(try_rir[i].host, nhost) == 0) {
599 for (i = 0; try_rir[i].host != NULL; i++) {
601 s_asprintf(&nhost, "%s", try_rir[i].host);