Logging issue with bind

Raven raven at vp44.net
Thu Feb 16 09:48:42 UTC 2012


Hi guys.
I am currently trying to setup query logging with bind on a debian
server, but I seem unable to.
I have the exact same setup on another debian box and it works
flawlessly. I've been scratching my head all morning..

My configuration:
/etc/bind/named.conf:

logging {
  channel munin_log {
    file "/var/log/bind9/query.log" versions 30 size 15m;
    severity dynamic;
    print-time yes;  };

  category queries {
    munin_log; };
};

/etc/bind/named.conf.options:

statistics-file "/var/log/bind9/named.stats";


List for the directory where logs should be:

root at srv:~# ls -alh /var/log/bind9/
total 16K
drwxr-xr-x  2 bind bind 4.0K 2012-02-16 10:25 .
drwxr-xr-x 14 root root 4.0K 2012-02-16 10:21 ..
-rw-r--r--  1 bind bind 6.9K 2012-02-16 10:45 named.stats
-rwxrwxrwx  1 bind bind    0 2012-02-16 10:21 query.log

Why does "named.stats" get written correctly and "query.log" not??


-RV




More information about the bind-users mailing list