resolved: never route DNSSEC traffic to LLMNR/mDNS
LLMNR/mDNS don't support DNSSEC, hence there's no point in routing any lookups asking for DNSSEC there. This speeds up looking up DNSSEC RRs for top-level domains, since we don't have to wait for LLMNR to complete.
This commit is contained in:
@@ -671,6 +671,10 @@ bool dns_scope_good_key(DnsScope *s, const DnsResourceKey *key) {
|
||||
return !dns_name_is_root(name);
|
||||
}
|
||||
|
||||
/* Never route DNSSEC RR queries to LLMNR/mDNS scopes */
|
||||
if (dns_type_is_dnssec(key->type))
|
||||
return false;
|
||||
|
||||
/* On mDNS and LLMNR, send A and AAAA queries only on the respective scopes */
|
||||
|
||||
key_family = dns_type_to_af(key->type);
|
||||
|
||||
Reference in New Issue
Block a user