From 7c67ad49d0c648d7439849622216d0eb117f0e79 Mon Sep 17 00:00:00 2001 From: downtownallday Date: Fri, 24 Jun 2022 08:22:38 -0400 Subject: [PATCH] nsd.log must exist or rsyslog won't write to it --- setup/dns.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/dns.sh b/setup/dns.sh index e1bc69a0..0bdece6d 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -38,6 +38,12 @@ server: EOF +# nsd.log must exist or rsyslog won't write to it +if [ ! -e /var/log/nsd.log ]; then + touch /var/log/nsd.log + chown syslog:adm /var/log/nsd.log +fi + # Since we have bind9 listening on localhost for locally-generated # DNS queries that require a recursive nameserver, and the system # might have other network interfaces for e.g. tunnelling, we have