From: Lennart Poettering Date: Mon, 4 Mar 2024 17:48:16 +0000 (+0100) Subject: resolved: use relaxed single label rules when proxying DNS queries X-Git-Tag: v256-rc1~625^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=718324c5e03f9892b5b416dc99b84f4131953129;p=thirdparty%2Fsystemd.git resolved: use relaxed single label rules when proxying DNS queries When we use proxy mode when propagating DNS queries to upstream DNS servers, let's use the relaxed single label rules. This has the benefit that tools such "delv" work on the proxy stub 127.0.0.54. --- diff --git a/src/resolve/resolved-dns-stub.c b/src/resolve/resolved-dns-stub.c index 2a3c1edbba7..3748496cf96 100644 --- a/src/resolve/resolved-dns-stub.c +++ b/src/resolve/resolved-dns-stub.c @@ -970,7 +970,8 @@ static void dns_stub_process_query(Manager *m, DnsStubListenerExtra *l, DnsStrea SD_RESOLVED_NO_SEARCH| SD_RESOLVED_NO_VALIDATE| SD_RESOLVED_REQUIRE_PRIMARY| - SD_RESOLVED_CLAMP_TTL); + SD_RESOLVED_CLAMP_TTL| + SD_RESOLVED_RELAX_SINGLE_LABEL); else r = dns_query_new(m, &q, p->question, p->question, NULL, 0, protocol_flags|