bind9 and logrotation

2013-07-29 Thread Christoph Anton Mitterer
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. smime.p7s Description: S/MIME

Re: bind9 and logrotation

2013-07-29 Thread Mike Hale
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

Re: bind9 and logrotation

2013-07-29 Thread Christoph Anton Mitterer
Hi Mike. On Mon, 2013-07-29 at 15:13 -0700, Mike Hale wrote: You can use an option in named.conf to rotate the logs automatically. Thanks but... well... I don't want to do that. IMHO logrotation shouldn't be in server daemons... but rather in it's own service. Cause only then you can do real

Re: bind9 and logrotation

2013-07-29 Thread Chris Buxton
On Jul 29, 2013, at 3:09 PM, Christoph Anton Mitterer cales...@scientia.net wrote: Is there a clean way to have bind9 reopening it's logfiles, in order to allow clean log rotation? No. If not, could that be implemented? Send a feature request to ISC, or write it in yourself and maintain a

Re: bind9 and logrotation

2013-07-29 Thread Christoph Anton Mitterer
On Mon, 2013-07-29 at 15:55 -0700, Chris Buxton wrote: Send a feature request to ISC, or write it in yourself and maintain a patch. Do they have a bug tracker? I though they only pick up stuff from here? Of course you know logrotate can truncate files rather than renaming them, after first

Re: bind9 and logrotation

2013-07-29 Thread Steven Carr
On 30 July 2013 00:08, Christoph Anton Mitterer cales...@scientia.netwrote: You can also configure logrotate to work with the inactive log files created by BIND's own logging facility. That is, let BIND write and rotate log files, but then process them with logrotate afterward. Yeah... I