From 2942ac039a839549c1b9a712e10bafb677674b5e Mon Sep 17 00:00:00 2001 From: "tropibot[bot]" <285933081+tropibot[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 14:15:39 +0000 Subject: [PATCH 1/2] chore: bump dnscrypt-proxy to 2.1.21 --- dappnode_package.json | 50 ++++++++++++++++++++++++++----------------- docker-compose.yml | 2 +- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/dappnode_package.json b/dappnode_package.json index e8bb431..6fc6c44 100644 --- a/dappnode_package.json +++ b/dappnode_package.json @@ -1,34 +1,44 @@ { - "name": "bind.dnp.dappnode.eth", - "version": "0.2.11", - "upstream": [ + "architectures": [ + "linux/amd64", + "linux/arm64" + ], + "author": "DAppNode Association (https://github.com/dappnode)", + "bugs": { + "url": "https://github.com/dappnode/DNP_BIND/issues" + }, + "categories": [ + "Developer tools" + ], + "description": "Dappnode Core Package responsible for forwarding the DNS and ENS requests to the proper resolver", + "globalEnvs": [ { - "repo": "DNSCrypt/dnscrypt-proxy", - "version": "2.1.20", - "arg": "UPSTREAM_VERSION" + "envs": [ + "DOMAIN", + "INTERNAL_IP" + ], + "services": [ + "bind.dnp.dappnode.eth" + ] } ], - "shortDescription": "DNS/ENS forwarder for Dappnode", - "description": "Dappnode Core Package responsible for forwarding the DNS and ENS requests to the proper resolver", - "architectures": ["linux/amd64", "linux/arm64"], - "type": "dncore", - "author": "DAppNode Association (https://github.com/dappnode)", - "categories": ["Developer tools"], + "license": "GPL-3.0", "links": { "homepage": "https://dappnode.com" }, + "name": "bind.dnp.dappnode.eth", "repository": { "type": "git", "url": "git+https://github.com/dappnode/DNP_BIND" }, - "bugs": { - "url": "https://github.com/dappnode/DNP_BIND/issues" - }, - "license": "GPL-3.0", - "globalEnvs": [ + "shortDescription": "DNS/ENS forwarder for Dappnode", + "type": "dncore", + "upstream": [ { - "envs": ["DOMAIN", "INTERNAL_IP"], - "services": ["bind.dnp.dappnode.eth"] + "arg": "UPSTREAM_VERSION", + "repo": "DNSCrypt/dnscrypt-proxy", + "version": "2.1.21" } - ] + ], + "version": "0.2.16" } diff --git a/docker-compose.yml b/docker-compose.yml index 60298c4..bdbcf74 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: bind args: - UPSTREAM_VERSION: 2.1.20 + UPSTREAM_VERSION: 2.1.21 restart: always networks: dncore_network: From 7b909b5e32bdb211dbe3bad5597f710b4a390066 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:17:46 +0100 Subject: [PATCH 2/2] fix: update Dappnode patch and Go toolchain for dnscrypt-proxy 2.1.21 Upstream changed a context line of the forwarding patch and now requires Go 1.27.4. --- bind/Dockerfile | 2 +- bind/custom/patches/dappnode-forwarding.patch | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bind/Dockerfile b/bind/Dockerfile index e44d248..e536c7d 100644 --- a/bind/Dockerfile +++ b/bind/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.27.3-alpine3.24 AS builder +FROM golang:1.27.4-alpine3.24 AS builder ARG UPSTREAM_VERSION diff --git a/bind/custom/patches/dappnode-forwarding.patch b/bind/custom/patches/dappnode-forwarding.patch index a3c0e18..2f70605 100644 --- a/bind/custom/patches/dappnode-forwarding.patch +++ b/bind/custom/patches/dappnode-forwarding.patch @@ -1,5 +1,5 @@ diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go -index 6e6e81c..0631671 100644 +index 8a93530..6b25171 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -59,6 +59,7 @@ type Config struct { @@ -31,7 +31,7 @@ index 9e609a6..ed8e6b1 100644 // Configure query meta diff --git a/dnscrypt-proxy/plugin_forward.go b/dnscrypt-proxy/plugin_forward.go -index 8f3bed9..679831f 100644 +index 842cb3e..90f303e 100644 --- a/dnscrypt-proxy/plugin_forward.go +++ b/dnscrypt-proxy/plugin_forward.go @@ -6,14 +6,17 @@ @@ -114,7 +114,7 @@ index 8f3bed9..679831f 100644 break } @@ -435,6 +453,9 @@ func (plugin *PluginForward) Eval(pluginsState *PluginsState, msg *dns.Msg) erro - if err := validateResponseQuestion(forwardMsg, respMsg); err != nil { + if err = validateResponseQuestion(forwardMsg, respMsg); err != nil { continue } + if fallback != "" && respMsg.Rcode != dns.RcodeSuccess { @@ -165,10 +165,10 @@ index 8f3bed9..679831f 100644 // the given protocol and retrying a truncated UDP response over TCP. func (plugin *PluginForward) exchangeDirect( diff --git a/dnscrypt-proxy/proxy.go b/dnscrypt-proxy/proxy.go -index 726886d..b74789e 100644 +index e84d451..433c827 100644 --- a/dnscrypt-proxy/proxy.go +++ b/dnscrypt-proxy/proxy.go -@@ -91,6 +91,7 @@ type Proxy struct { +@@ -94,6 +94,7 @@ type Proxy struct { cacheMinTTL uint32 cacheNegMaxTTL uint32 cloakTTL uint32