add bind9 configuration

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-04-13 21:28:17 +02:00
parent bd2605221a
commit f5a59d8bb1
1 changed files with 3 additions and 0 deletions

View File

@ -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