mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
add bind9 configuration
This commit is contained in:
parent
bd2605221a
commit
f5a59d8bb1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user