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:
Lennart Poettering
2021-02-12 21:41:01 +01:00
parent e7a8f6b66f
commit 73b6fc7770
+4
View File
@@ -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);