From 24630b6e74a9dc39dbe2ef8e5eaec2125194f189 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 26 Aug 2024 18:53:27 +0200 Subject: [PATCH] Update INSTALL.sh --- version/0.2.6/INSTALL.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/version/0.2.6/INSTALL.sh b/version/0.2.6/INSTALL.sh index d60abdfc..6a20df84 100644 --- a/version/0.2.6/INSTALL.sh +++ b/version/0.2.6/INSTALL.sh @@ -1295,6 +1295,14 @@ setup_bind(){ if [ -f /etc/os-release ] && grep -q "Ubuntu" /etc/os-release; then echo " DNSStubListener=no" >> /etc/systemd/resolved.conf && systemctl restart systemd-resolved fi + + # generate unique rndc.key +docker run -it --rm \ + -v /etc/bind/:/etc/bind/ \ + --entrypoint=/bin/sh \ + ubuntu/bind9:latest \ + -c 'rndc-confgen -a -A hmac-sha256 -b 256 -c /etc/bind/rndc.key' + } send_install_log(){