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.
Is it a difference in the way logging works in the OBSD modified BIND, or has
nothing
in that category been logged yet? Or is it not configured right?
J.D. Carlson