Lines Matching refs:host
80 static struct addrinfo *gethostinfo(char const *host, int exit_on_error);
88 const char *country, *host; in main() local
92 country = host = qnichost = NULL; in main()
97 host = ANICHOST; in main()
100 host = PNICHOST; in main()
103 host = ABUSEHOST; in main()
109 host = FNICHOST; in main()
112 host = GNICHOST; in main()
115 host = optarg; in main()
118 host = INICHOST; in main()
121 host = IANAHOST; in main()
124 host = KNICHOST; in main()
127 host = LNICHOST; in main()
130 host = MNICHOST; in main()
139 host = RNICHOST; in main()
150 if (!argc || (country != NULL && host != NULL)) in main()
159 if (host == NULL && country == NULL) { in main()
161 host = NICHOST; in main()
173 whois(*argv, host, flags); in main()
219 gethostinfo(char const *host, int exit_on_error) in gethostinfo() argument
228 error = getaddrinfo(host, port, &hints, &res); in gethostinfo()
230 warnx("%s: %s", host, gai_strerror(error)); in gethostinfo()
266 char *host, *nhost, *p; in whois() local
303 host = strnstr(buf, WHOIS_SERVER_ID, len); in whois()
304 if (host != NULL) { in whois()
305 host += sizeof (WHOIS_SERVER_ID) - 1; in whois()
306 for (p = host; p < buf + len; p++) { in whois()
313 (int)(buf + len - host), host); in whois()
314 } else if ((host = in whois()
316 host += sizeof (WHOIS_ORG_SERVER_ID) - 1; in whois()
317 for (p = host; p < buf + len; p++) { in whois()
324 (int)(buf + len - host), host); in whois()