resolved: don't send .local requests to DNS servers
DNS names ending with .local are specific to mDNS, so don't use them on DNS scopes.
This commit is contained in:
parent
0896271419
commit
b43d96b076
|
@ -433,7 +433,11 @@ DnsScopeMatch dns_scope_good_domain(DnsScope *s, int ifindex, uint64_t flags, co
|
|||
dns_name_endswith(domain, "8.e.f.ip6.arpa") == 0 &&
|
||||
dns_name_endswith(domain, "9.e.f.ip6.arpa") == 0 &&
|
||||
dns_name_endswith(domain, "a.e.f.ip6.arpa") == 0 &&
|
||||
dns_name_endswith(domain, "b.e.f.ip6.arpa") == 0)
|
||||
dns_name_endswith(domain, "b.e.f.ip6.arpa") == 0 &&
|
||||
/* If networks use .local in their private setups, they are supposed to also add .local to their search
|
||||
* domains, which we already checked above. Otherwise, we consider .local specific to mDNS and won't
|
||||
* send such queries ordinary DNS servers. */
|
||||
dns_name_endswith(domain, "local") == 0)
|
||||
return DNS_SCOPE_MAYBE;
|
||||
|
||||
return DNS_SCOPE_NO;
|
||||
|
|
Loading…
Reference in a new issue