to forward log info from syslog to another file for bind9 server in Ubuntu you have to:
- add logging section in any name.conf* file:
logging { channel bind_log { file "/var/log/named.log"; print-time yes; print-category yes; print-severity yes; }; category default { bind_log;}; category xfer-in { bind_log;}; category xfer-out { bind_log;}; category update { bind_log;}; category security { bind_log;}; category queries { bind_log;}; };
- update apparmor config by adding to file /etc/apparmor.d/usr.sbin.named
/var/log/named.log rw,
-
apparmor_parser -r /etc/apparmor.d/usr.sbin.named
-
service bind9 restart