CarlosM KB

Una colección bastante desordenada de artículos y links...

Follow me on GitHub

Sample Logging Configuration for BIND9

BIND 9.x logging configuration *is a pain*. Although extremely powerful, it makes it unnecessarily difficult to just configure a simple logging scheme for a few messages.

Below you can find a clear configuration snippets to quicklyimplement logging configuration for BIND9. Logging configuration in BIND is, to me, quite obscure and unnecessarily complicated. This sample can be cut & pasted in named.conf (or named.conf.options in Debian / Ubuntu variants). The basis for this configuration was in [http://www.zytrax.com/books/dns/ch7/logging.html]

**NEW**: configuration snippet now hosted in a GitHub gist.



Old configuration for reference purposes only. Not maintained.

logging{

channel simple_log {
file "/var/log/named/bind.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
channel queries_log {
file "/var/log/named/queries.log" versions 3 size 5m;
severity debug;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
simple_log;
};
category queries{
queries_log;
};
};

ts: 2011-06-10T01:09:47+00:00