1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-19 02:42:15 +00:00

Update dns.sh

Add include for local.conf into /etc/nsd/nsd.conf
If it doesn't already exist, create local.conf
This commit is contained in:
drpixie 2021-09-11 10:12:32 +10:00 committed by GitHub
parent 91079ab934
commit 634e4e525b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,13 @@ for ip in $PRIVATE_IP $PRIVATE_IPV6; do
done
echo "include: /etc/nsd/zones.conf" >> /etc/nsd/nsd.conf;
echo "include: /etc/nsd/local.conf" >> /etc/nsd/nsd.conf;
# NSD requires all include files to exist, ensure we have a local.conf.
if [ ! -f /etc/nsd/local.conf ]; then
echo "# local zone config" > /etc/nsd/local.conf
fi
# Create DNSSEC signing keys.