From f5a59d8bb1c015ef2b2fca35cabcfd0abba6bf42 Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Tue, 13 Apr 2021 21:28:17 +0200 Subject: [PATCH] add bind9 configuration --- setup/system.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/system.sh b/setup/system.sh index 75d32371..ddf86ec3 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -316,6 +316,9 @@ fi if ! grep -q "listen-on-v6 " /etc/bind/named.conf.options; then # Add a listen-on-v6 directive if it doesn't exist inside the options block. sed -i "s/^}/\n\tlisten-on-v6 { ::1; };\n}/" /etc/bind/named.conf.options +else + # Modify the listen-on-v6 directive if it does exist + sed -i "s/listen-on-v6 { any; }/listen-on-v6 { ::1; }/" /etc/bind/named.conf.options fi if ! grep -q "max-recursion-queries " /etc/bind/named.conf.options; then