1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-24 07:37:04 +00:00

add bind9 configuration

This commit is contained in:
github@kiekerjan.isdronken.nl 2021-04-13 21:28:17 +02:00
parent bd2605221a
commit f5a59d8bb1

View File

@ -316,6 +316,9 @@ fi
if ! grep -q "listen-on-v6 " /etc/bind/named.conf.options; then 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. # 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 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 fi
if ! grep -q "max-recursion-queries " /etc/bind/named.conf.options; then if ! grep -q "max-recursion-queries " /etc/bind/named.conf.options; then