bind9 and logrotation
Chris Buxton
clists at buxtonfamily.us
Mon Jul 29 22:55:16 UTC 2013
On Jul 29, 2013, at 3:09 PM, Christoph Anton Mitterer <calestyo at 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 patch.
Of course you know logrotate can truncate files rather than renaming them, after first copying their contents, but this leaves a small window for lost log messages.
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.
Another option is to send all log messages through syslog, which allows for:
- asynchronous (batched) file writing
- all kinds of other, more advanced features that BIND doesn't support natively
Regards,
Chris Buxton
More information about the bind-users
mailing list