From c27082dbfa50e9be66c43e2ed58f74b550791635 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Wed, 26 Sep 2018 23:01:18 +0200 Subject: [PATCH] Add a logfile entry to the NSD conf file 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 <