Lines Matching refs:host
66 add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t *ps)
79 switch (getaddrinfo(host, servname, &hints, &res0)) {
87 * SMARTHOST set but DNS server returns "host does not exist"
109 strlcpy(p->host, host, sizeof(p->host));
132 dns_get_mx_list(const char *host, int port, struct mx_hostentry **he, int no_mx)
150 searchhost = host;
168 * Not an error, use host name instead.
252 err = add_host(0, host, port, &hosts, &nhosts);
265 *hosts[nhosts].host = 0;
287 for (p = he; *p->host != 0; p++) {
288 printf("%d\t%s\t%s\n", p->pref, p->host, p->addr);