mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-20 02:52:11 +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:
parent
91079ab934
commit
634e4e525b
@ -63,6 +63,13 @@ for ip in $PRIVATE_IP $PRIVATE_IPV6; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "include: /etc/nsd/zones.conf" >> /etc/nsd/nsd.conf;
|
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.
|
# Create DNSSEC signing keys.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user