CentOS5
BIND 9.3.3rc2
2.6.18-53.1.13.el5.centos.plus
Here is what I have setup in the /etc/named.conf
Code:
logging {
channel update_debug {
file "/var/log/named/named_update.log";
severity debug 5;
print-time yes;
print-severity yes;
print-category yes;
};
channel security_info {
file "/var/log/named/named_auth.log";
severity notice;
print-time yes;
print-severity yes;
print-category yes;
};
channel info {
file "/var/log/named/named_info.log";
severity info;
print-time yes;
print-severity yes;
print-category yes;
};
category update { update_debug; };
category security { security_info; };
category info { info; };
};
This is an "ls -a" on /var/log/named
Code:
drwxrwxr-x 2 root named 4.0K Feb 25 03:39 .
drwxr-xr-x 11 root root 4.0K Feb 25 03:16 ..
-rw-rw-r-- 1 root named 1 Feb 25 01:13 named_auth.log
-rw-rw-r-- 1 root named 0 Feb 25 03:11 named_info.log
-rw-rw-r-- 1 root named 1 Feb 25 01:13 named_update.log
I receive no errors when starting the service, it just don't seem to want to log to these files. I have made sure that named user has write privileges to the files and directory. I have even tried commenting out the logging directive, restarting and checking the default /var/log/messages. It isn't logging there anymore either, and it did before.
EDIT: 11:05AM 2008-02-25
Ok after restarting syslogd logging is functional to /var/log/messages. But still not to my defined log files.
Here are the relevant entries in /var/log/messages
Code:
Feb 25 04:00:33 brutus named[9410]: logging channel 'update_debug' file '/var/log/named/named_update.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'security_info' file '/var/log/named/named_auth.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'info' file '/var/log/named/named_info.log': file not found
Feb 25 04:00:33 brutus named[9410]: /etc/named.conf:73: unknown logging category 'info' ignored
Somehow I've managed to get DDNS working but not logging :P
Thanks for any advice,
Ant