From c92af29e84c38f7c8873206f2a97a239115e4746 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 26 Dec 2020 11:36:15 -0600 Subject: [PATCH] roles/named: Send application logs to syslog BIND sends its normal application logs (as opposed to query logs) to the `default_debug` channel. By sending these log messages to syslog, they can be routed and rotated using the normal system policies. Using a separate dedicated log file just ends up consuming a lot of space, as it is not managed by any policy. --- roles/named/templates/named.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/named/templates/named.conf.j2 b/roles/named/templates/named.conf.j2 index ce230a9..a6811d0 100644 --- a/roles/named/templates/named.conf.j2 +++ b/roles/named/templates/named.conf.j2 @@ -73,10 +73,10 @@ options { }; logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; + channel default_debug { + syslog daemon; + severity dynamic; + }; {% if named_queries_syslog %} channel queries_syslog { syslog daemon;