Lines Matching refs:domain
511 static DnsScopeMatch match_link_local_reverse_lookups(const char *domain) { in match_link_local_reverse_lookups() argument
512 assert(domain); in match_link_local_reverse_lookups()
514 if (dns_name_endswith(domain, "254.169.in-addr.arpa") > 0) in match_link_local_reverse_lookups()
517 if (dns_name_endswith(domain, "8.e.f.ip6.arpa") > 0 || in match_link_local_reverse_lookups()
518 dns_name_endswith(domain, "9.e.f.ip6.arpa") > 0 || in match_link_local_reverse_lookups()
519 dns_name_endswith(domain, "a.e.f.ip6.arpa") > 0 || in match_link_local_reverse_lookups()
520 dns_name_endswith(domain, "b.e.f.ip6.arpa") > 0) in match_link_local_reverse_lookups()
528 const char *domain, in match_subnet_reverse_lookups() argument
535 assert(domain); in match_subnet_reverse_lookups()
549 r = dns_name_address(domain, &f, &ia); in match_subnet_reverse_lookups()
551 … log_debug_errno(r, "Failed to determine whether '%s' is an address domain: %m", domain); in match_subnet_reverse_lookups()
574 …_debug_errno(r, "Failed to determine whether link address covers lookup address '%s': %m", domain); in match_subnet_reverse_lookups()
589 const char *domain; in dns_scope_good_domain() local
611 domain = dns_question_first_name(question); in dns_scope_good_domain()
612 if (!domain) in dns_scope_good_domain()
629 if (is_localhost(domain) || in dns_scope_good_domain()
630 dns_name_endswith(domain, "127.in-addr.arpa") > 0 || in dns_scope_good_domain()
631 …dns_name_equal(domain, "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa")… in dns_scope_good_domain()
635 if (dns_name_dont_resolve(domain)) in dns_scope_good_domain()
639 if (is_gateway_hostname(domain) || is_outbound_hostname(domain)) in dns_scope_good_domain()
649 if (dns_name_is_empty(domain)) { in dns_scope_good_domain()
677 if (dns_name_endswith(domain, d->name) > 0) { in dns_scope_good_domain()
692 if (has_search_domains && dns_name_is_single_label(domain)) in dns_scope_good_domain()
702 if (match_link_local_reverse_lookups(domain) >= DNS_SCOPE_YES_BASE || in dns_scope_good_domain()
706 dns_name_endswith(domain, "local") > 0) in dns_scope_good_domain()
712 m = match_subnet_reverse_lookups(s, domain, false); in dns_scope_good_domain()
726 m = match_link_local_reverse_lookups(domain); in dns_scope_good_domain()
730 m = match_subnet_reverse_lookups(s, domain, true); in dns_scope_good_domain()
734 if ((s->family == AF_INET && dns_name_endswith(domain, "in-addr.arpa") > 0) || in dns_scope_good_domain()
735 (s->family == AF_INET6 && dns_name_endswith(domain, "ip6.arpa") > 0)) in dns_scope_good_domain()
738 … if ((dns_name_endswith(domain, "local") > 0 && /* only resolve names ending in .local via mDNS */ in dns_scope_good_domain()
739 … dns_name_equal(domain, "local") == 0 && /* but not the single-label "local" name itself */ in dns_scope_good_domain()
740 … manager_is_own_hostname(s->manager, domain) <= 0)) /* never resolve the local hostname via mDNS */ in dns_scope_good_domain()
749 m = match_link_local_reverse_lookups(domain); in dns_scope_good_domain()
753 m = match_subnet_reverse_lookups(s, domain, true); in dns_scope_good_domain()
757 if ((s->family == AF_INET && dns_name_endswith(domain, "in-addr.arpa") > 0) || in dns_scope_good_domain()
758 (s->family == AF_INET6 && dns_name_endswith(domain, "ip6.arpa") > 0)) in dns_scope_good_domain()
761 … if ((dns_name_is_single_label(domain) && /* only resolve single label names via LLMNR */ in dns_scope_good_domain()
762 …!is_gateway_hostname(domain) && /* don't resolve "_gateway" with LLMNR, let local synthesizing log… in dns_scope_good_domain()
763 !is_outbound_hostname(domain) && /* similar for "_outbound" */ in dns_scope_good_domain()
764 …dns_name_equal(domain, "local") == 0 && /* don't resolve "local" with LLMNR, it's the top-level do… in dns_scope_good_domain()
765 …manager_is_own_hostname(s->manager, domain) <= 0)) /* never resolve the local hostname via LLMNR … in dns_scope_good_domain()
1600 LIST_FOREACH(domains, domain, first) { in dns_scope_has_route_only_domains()
1605 if (dns_name_is_root(DNS_SEARCH_DOMAIN_NAME(domain))) in dns_scope_has_route_only_domains()
1608 if (domain->route_only) in dns_scope_has_route_only_domains()