Lines Matching refs:domain
24 #include "dns-domain.h"
405 DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, const char *domain) {
409 assert(domain);
411 /* Checks if the specified domain is something to look up on
424 if (is_localhost(domain) ||
425 dns_name_endswith(domain, "127.in-addr.arpa") > 0 ||
426 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") > 0)
430 if (dns_name_endswith(domain, "0.in-addr.arpa") > 0 ||
431 dns_name_equal(domain, "255.255.255.255.in-addr.arpa") > 0 ||
432 dns_name_equal(domain, "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.0.ip6.arpa") > 0)
436 if (dns_name_endswith(domain, "invalid") > 0)
444 if (dns_name_endswith(domain, d->name) > 0)
452 if (dns_name_endswith(domain, "254.169.in-addr.arpa") == 0 &&
453 dns_name_endswith(domain, "8.e.f.ip6.arpa") == 0 &&
454 dns_name_endswith(domain, "9.e.f.ip6.arpa") == 0 &&
455 dns_name_endswith(domain, "a.e.f.ip6.arpa") == 0 &&
456 dns_name_endswith(domain, "b.e.f.ip6.arpa") == 0 &&
460 dns_name_endswith(domain, "local") == 0)
466 if ((s->family == AF_INET && dns_name_endswith(domain, "in-addr.arpa") > 0) ||
467 (s->family == AF_INET6 && dns_name_endswith(domain, "ip6.arpa") > 0) ||
468 (dns_name_endswith(domain, "local") > 0 && /* only resolve names ending in .local via mDNS */
469 dns_name_equal(domain, "local") == 0 && /* but not the single-label "local" name itself */
470 manager_is_own_hostname(s->manager, domain) <= 0)) /* never resolve the local hostname via mDNS */
476 if ((s->family == AF_INET && dns_name_endswith(domain, "in-addr.arpa") > 0) ||
477 (s->family == AF_INET6 && dns_name_endswith(domain, "ip6.arpa") > 0) ||
478 (dns_name_is_single_label(domain) && /* only resolve single label names via LLMNR */
479 !is_gateway_hostname(domain) && /* don't resolve "gateway" with LLMNR, let nss-myhostname handle this */
480 manager_is_own_hostname(s->manager, domain) <= 0)) /* never resolve the local hostname via LLMNR */