From 634e4e525b634da85b821bf6a5ed14171eacefab Mon Sep 17 00:00:00 2001 From: drpixie Date: Sat, 11 Sep 2021 10:12:32 +1000 Subject: [PATCH] Update dns.sh Add include for local.conf into /etc/nsd/nsd.conf If it doesn't already exist, create local.conf --- setup/dns.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup/dns.sh b/setup/dns.sh index b64a6580..a3d9d173 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -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.