From a7dded818283ae565d97fe364b429f0675ccf178 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 3 Dec 2018 00:00:16 +0100 Subject: [PATCH] Add a logfile entry to the NSD conf file (#1434) Having a log file can help debugging when something goes wrong and NSD doesn't fail or MiaB doesn't notify you. See https://discourse.mailinabox.email/t/dns-email-domain-becomes-inaccessible-every-few-hours/3770 --- setup/dns.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/setup/dns.sh b/setup/dns.sh index 191a3adc..5d86227a 100755 --- a/setup/dns.sh +++ b/setup/dns.sh @@ -26,6 +26,7 @@ cat > /etc/nsd/nsd.conf << EOF; # Do not edit. Overwritten by Mail-in-a-Box setup. server: hide-version: yes + logfile: "/var/log/nsd.log" # identify the server (CH TXT ID.SERVER entry). identity: "" @@ -41,6 +42,18 @@ server: EOF +# Add log rotation +cat > /etc/logrotate.d/nsd <