Home | History | Annotate | Download | only in src

Lines Matching refs:domain

114 				     unsigned short qtype, char *qdomain, int *type, char **domain)
117 /* If the query ends in the domain in one of our servers, set
118 domain to point to that name. We find the largest match to allow both
119 domain.org and sub.domain.org to exist. */
127 /* domain matches take priority over NODOTS matches */
152 unsigned int domainlen = strlen(serv->domain);
155 hostname_isequal(matchstart, serv->domain) &&
157 (domainlen == 0 || namelen == domainlen || *(serv->domain) == '.' || *(matchstart-1) == '.' ))
161 *domain = serv->domain;
208 char *domain = NULL;
222 domain = forward->sentto->domain;
237 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain);
259 /* In strict_order mode, or when using domain specific servers
288 /* only send to servers dealing with our domain.
289 domain may be NULL, in which case server->domain
293 (type != SERV_HAS_DOMAIN || hostname_isequal(domain, start->domain)) &&
370 /* could not send on, return empty answer or address if known for whole domain */
429 since we know that the domain exists, even if upstream doesn't */
780 char *domain = NULL;
783 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain);
811 /* server for wrong domain */
813 (type == SERV_HAS_DOMAIN && !hostname_isequal(domain, last_server->domain)))