Lines Matching defs:domain
167 /* Find the domain name in questions area, and use this name to compare with the
282 unsigned short qtype, char *qdomain, int *type, char **domain)
285 /* If the query ends in the domain in one of our servers, set
286 domain to point to that name. We find the largest match to allow both
287 domain.org and sub.domain.org to exist. */
295 /* domain matches take priority over NODOTS matches */
320 unsigned int domainlen = strlen(serv->domain);
322 hostname_isequal(qdomain + namelen - domainlen, serv->domain) &&
327 *domain = serv->domain;
431 char *domain = NULL;
499 domain = forward->sentto->domain;
513 flags = search_servers(daemon, now, &addrp, gotname, daemon->namebuff, &type, &domain);
548 /* In strict_order mode, or when using domain specific servers
602 /* only send to servers dealing with our domain.
603 domain may be NULL, in which case server->domain
609 (type != SERV_HAS_DOMAIN || hostname_isequal(domain, start->domain)))
754 /* could not send on, return empty answer or address if known for whole domain */
837 since we know that the domain exists, even if upstream doesn't */
1237 char *domain = NULL;
1240 flags = search_servers(daemon, now, &addrp, gotname, daemon->namebuff, &type, &domain);
1267 /* server for wrong domain */
1269 (type == SERV_HAS_DOMAIN && !hostname_isequal(domain, last_server->domain)))