On Dec 17, 2007 5:49 AM, J.D. Carlson <[EMAIL PROTECTED]> wrote:
> I am having trouble  with BIND logging in my OpenBSD 4.2-current DNS server.
>
> I run it normally with this line in /etc/rc.conf.local:
>
>         named_flags=""          # for normal use: ""
>
> My /var/named/etc/named.conf has these sections:
>
> options {
>         version "";
>         listen-on port 53 { any; };
>         directory "/data";
>         allow-recursion { clients; };
>         recursive-clients 2000;
>         statistics-file "/var/stats.log";
> };
>
> logging {
>         channel mmsuite_log { file "/data/mmsuite.log";
>                 severity info; print-category yes;
>                 print-severity yes; print-time yes; };
>         channel mmsuite_syslog { syslog user; severity error; };
>         category lame-servers { null; };
> };
>
>
> and I created the file mmsuite.log via touch, changing its ownership to named:
>
> $ls -l /var/named/data
> total 6
> drwxr-xr-x  3 named  named  512 Dec 15 12:54 conf/
> drwxr-xr-x  4 named  named  512 Dec 15 12:54 hosts/
> drwxr-xr-x  2 named  named  512 Dec 15 13:01 mmsuite/
> -rw-r--r--  1 named  named    0 Dec 15 12:55 mmsuite.log
>
>
> But nothing gets logged to the file.  I see entries in /var/log/daemon when I
> do a rndc querylog and I see entries in /var/log/messages.

Doesn't seem to me that you're actually sending any log messages to
that channel. Maybe a missing 'category' stanza?

>From my config:

// Logging options
logging {
        channel simple_log {
                file "/log/named.log" versions 3 size 5m;
                severity info;
                print-time yes;
                print-severity yes;
                print-category yes;
        };
        category default {
                simple_log;
        };
        category lame-servers { null; };
};

My 'category default' stanza looks to be the kind of thing missing in
your config.

DS

Reply via email to