Save bind logs in a bind-writable directory
authorAlex Dehnert <alex@dehnerts.com>
Wed, 20 Sep 2017 06:07:45 +0000 (02:07 -0400)
committerAlex Dehnert <alex@dehnerts.com>
Wed, 20 Sep 2017 06:07:45 +0000 (02:07 -0400)
Otherwise, apparently bind can't do the log rotation. It logs an error message,
but just keeps filling the file.

named.conf.local

index d0e1f7598d77c524dacc0e30c33b730070f7e31b..e09279468ac8842dcfc9b15a2cdb141bed1c8a9c 100644 (file)
@@ -31,7 +31,7 @@ zone "dehnerts.com" IN {
 
 logging {
     channel query.log {
-        file "/var/log/query.log" versions 10 size 100M;
+        file "/var/log/bind/query.log" versions 10 size 100M;
         // Set the severity to dynamic to see all the debug messages.
         severity debug 3;
         print-category yes;