From 68c2608e9372cc0fd4f50ae88cf210e70a766546 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 9 Jan 2024 13:37:56 +0100 Subject: [PATCH] add testECSNone --- pdns/dnsproxy.cc | 1 + regression-tests.auth-py/test_ALIAS.py | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/pdns/dnsproxy.cc b/pdns/dnsproxy.cc index fde68ce3a7..d3b8e03e15 100644 --- a/pdns/dnsproxy.cc +++ b/pdns/dnsproxy.cc @@ -270,6 +270,7 @@ void DNSProxy::mainloop() MOADNSParser mdp(false, p.getString()); if (p.d_eso.scope.isValid()){ // update the EDNS options with info from the resolver - issue #5469 + // note that this relies on the ECS string encoder to use the source network, and only take the prefix length from scope i->second.complete->d_eso.scope = p.d_eso.scope; DLOG(g_log<<"from dnsproxy::mainLoop: updated EDNS options from resolver EDNS source: "<second.complete->d_eso.source.toString()<<" EDNS scope: "<second.complete->d_eso.scope.toString()<