Skip to content

Commit 778859f

Browse files
committed
dietpi-software: Unbound: disable ECS by default
matching new Unbound upstream defaults: NLnetLabs/unbound@35dbbcb This also mutes two startup warnings: #7539 (comment) The warnings can be ignored, are more informational than indicating any problem. But as of the upstream commit, the ECS module should be disabled by default for other reasons.
1 parent 70dd123 commit 778859f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.conf/dps_182/unbound.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ server:
6060
# Set EDNS reassembly buffer size to match new upstream default, as of DNS Flag Day 2020 recommendation.
6161
edns-buffer-size: 1232
6262

63+
# Disable ECS module, matching new Unbound defaults, and mute 2 warnings: https://github.com/NLnetLabs/unbound/commit/35dbbcb, https://github.com/MichaIng/DietPi/issues/7539#issuecomment-2906900497
64+
module-config: "validator iterator"
65+
6366
# Increase incoming and outgoing query buffer size to cover traffic peaks.
6467
so-rcvbuf: 4m
6568
so-sndbuf: 4m

.update/patches

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2190,6 +2190,13 @@ Patch_9_13()
21902190
G_EXEC eval 'echo '\''vm.overcommit_memory=1'\'' > /etc/sysctl.d/98-dietpi-redis.conf'
21912191
G_EXEC sysctl -p /etc/sysctl.d/98-dietpi-redis.conf
21922192
fi
2193+
2194+
# Unbound
2195+
if grep -q '^[[:blank:]]*aSOFTWARE_INSTALL_STATE\[182\]=2' /boot/dietpi/.installed
2196+
then
2197+
G_DIETPI-NOTIFY 2 'Disabling Unbound ECS module, matching new upstream defaults and muting two startup warnings'
2198+
G_CONFIG_INJECT 'module-config:' ' module-config: "validator iterator"' /etc/unbound/unbound.conf.d/dietpi.conf
2199+
fi
21932200
fi
21942201

21952202
# Check and in case prompt to change default user and software passwords, which is now enforced on first run setup as well

0 commit comments

Comments
 (0)