Since the time I mastered building my own DNS server, I was unhappy with the logging configuration.

I like daemons generating a certain amount of verbose output. I helps me understanding how such daemons work and it’s usefull for troubleshooting (duh).

But when I was finished building my DNS Server, I did not feel like it to spent some more time finetuning the logging part of named.conf.

Until yesterday,after some digging around in man named.conf it turned out to be much more simple that I had thought,

<br /> logging{<br /> channel "bind_log" {<br /> file "/var/log/named/bind.log" versions 3 size 25m;<br /> severity info;<br /> print-time yes;<br /> print-severity yes;<br /> print-category yes;<br /> };<br /> channel "query_log" {<br /> file "/var/log/named/query.log" versions 3 size 25m;<br /> severity info;<br /> print-time yes;<br /> };<br /> category lame-servers { null; };<br /> category queries { "query_log"; };<br /> category default{ "bind_log"; };<br /> };<br />

I hope the above helps anyone,.[time=1071397561