Help with Bind Weirdness & Logging

Mark Felder feld at feld.me
Fri Aug 5 19:01:40 UTC 2011


On Fri, 05 Aug 2011 12:25:13 -0500, Drew Tomlinson  
<drew at mykitchentable.net> wrote:

> Any ideas on how to get Bind logging going?

Here's how we do it.

named.conf:

logging {
         channel "my_syslog" {
                 syslog daemon;
                 severity info;
                 //print-time yes;
                 //print-severity yes;
                 //print-category yes;
         };
         // below added for bind logging graphs   
http://www.cs.ait.ac.th/laboratory/monitor/bind/modif.shtml
         channel "querylog" {
                 // this is in a chroot, so it's actually at  
/var/named/var/log/query.log
                 file "/var/log/query.log" versions 3 size 1m;
         };
         category queries { querylog; };

         // don't log things that aren't our fault:
         category lame-servers { null; };
         category update { null; };
};


syslog.conf:

*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;daemon.none        
/var/log/messages
daemon.*                                        /var/log/daemon.log


newsyslog.conf:

/var/log/daemon.log                     644  7     *    @T00  JC


This seems to work great for us. Logs are in /var/log/daemon.log and get  
rotated.



Regards,



Mark


More information about the freebsd-questions mailing list