Lines Matching refs:domain
228 const char *cp, * const *domain; in res_nsearch() local
285 for (domain = (const char * const *)statp->dnsrch; in res_nsearch()
286 *domain && !done; in res_nsearch()
287 domain++) { in res_nsearch()
290 if (domain[0][0] == '\0' || in res_nsearch()
291 (domain[0][0] == '.' && domain[0][1] == '\0')) in res_nsearch()
294 ret = res_nquerydomain(statp, name, *domain, in res_nsearch()
380 const char *domain, in res_nquerydomain() argument
392 name, domain?domain:"<Nil>", class, type); in res_nquerydomain()
394 if (domain == NULL) { in res_nquerydomain()
412 d = strlen(domain); in res_nquerydomain()
417 snprintf(nbuf, sizeof(nbuf), "%s.%s", name, domain); in res_nquerydomain()