Skip to content

Commit 9c47b33

Browse files
committed
resolved: enable DNS proxy mode if client wants DNSSEC
So far we disabled DNSSEC if local clients asked for it via DO flag if DNSSEC=no is set. Let's instead switch to proxy mode in this case, and thus treat client requested DO mode as a way to force proxy mode. This means DNSSEC=no just controls whether resolved will do validation for regular looups, but it has no effect anymore on lookups from clients that indicated they want to do their own DNSSEC anyway. Fixes: systemd#19227 systemd#23737 systemd#25105
1 parent 718324c commit 9c47b33

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/resolve/resolved-dns-stub.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,8 +958,8 @@ static void dns_stub_process_query(Manager *m, DnsStubListenerExtra *l, DnsStrea
958958
log_debug("Got request to DNS proxy address 127.0.0.54, enabling bypass logic.");
959959
bypass = true;
960960
protocol_flags = SD_RESOLVED_DNS|SD_RESOLVED_NO_ZONE; /* Turn off mDNS/LLMNR for proxy stub. */
961-
} else if ((DNS_PACKET_DO(p) && DNS_PACKET_CD(p))) {
962-
log_debug("Got request with DNSSEC checking disabled, enabling bypass logic.");
961+
} else if (DNS_PACKET_DO(p)) {
962+
log_debug("Got request with DNSSEC enabled, enabling bypass logic.");
963963
bypass = true;
964964
}
965965

0 commit comments

Comments
 (0)