Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Aug 2011 14:01:32 -0500
From:      Mark Felder <feld@feld.me>
To:        freebsd-questions@freebsd.org
Subject:   Re: Help with Bind Weirdness & Logging
Message-ID:  <op.vzq8gun634t2sn@tech304>
In-Reply-To: <4E3C2779.9070508@mykitchentable.net>
References:  <4E3C1719.7030509@mykitchentable.net> <op.vzq1yit234t2sn@tech304> <4E3C2779.9070508@mykitchentable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 05 Aug 2011 12:25:13 -0500, Drew Tomlinson =20
<drew@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  =20
http://www.cs.ait.ac.th/laboratory/monitor/bind/modif.shtml
         channel "querylog" {
                 // this is in a chroot, so it's actually at =20
/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=
       =20
/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 =
=20
rotated.



Regards,



Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vzq8gun634t2sn>