bind9 and logrotation

Mike Hale eyeronic.design at gmail.com
Mon Jul 29 22:13:53 UTC 2013


You can use an option in named.conf to rotate the logs automatically.

         channel query_info {
            severity info;
            file "/var/named/data/log/named.query.log" versions 100 size 10m;
            print-time yes;
            print-category yes;
          };

The versions part tells bind how many versions it can keep before
overwriting, and the size will tell it how big each log file can be
prior to moving to the next one.  It happens automatically...no
reloads or anything is required.

On Mon, Jul 29, 2013 at 3:09 PM, Christoph Anton Mitterer
<calestyo at scientia.net> wrote:
> Hi.
>
> Is there a clean way to have bind9 reopening it's logfiles, in order to
> allow clean logrotation?
>
> AFAIK, it would work with rndc reload, but that doesn't just reload the
> logfiles but also everything else...
>
> If not, could that be implemented?
>
>
> Cheers,
> Chris.
>
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users



-- 
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


More information about the bind-users mailing list