Logwatch files: --------------------- Named Begin ------------------------ Named started: 4 Time(s) **Unmatched Entries** /etc/named.conf:47: when using 'view' statements, all zones must be in views: 1 Time(s) found 2 CPUs, using 2 worker threads: 4 Time(s) isc_log_open '/var/log/named/dns_logs' failed: file not found: 2 Time(s) isc_log_open '/var/log/named/dns_warnings' failed: file not found: 4 Time(s) logging channel 'general_dns' file '/var/log/named/dns_logs': file not found: 4 Time(s) logging channel 'warning' file '/var/log/named/dns_warnings': file not found: 4 Time(s) named.conf file: options { pid-file "/var/named/chroot/var/run/named/named.pid"; directory "/var/named/chroot/var/named"; dump-file "/var/named/chroot/var/named/cache_dump.db"; statistics-file "/var/named/chroot/var/named/named_stats.txt"; auth-nxdomain no; Permission: -rwxrwxrwx 1 named named 0 Dec 22 16:05 dns_logs -rwxrwxrwx 1 named named 0 Dec 22 16:06 dns_warnings Can anybody help me to solve the dns-log-error? Thanks alot.
Please post the output of: ls -la /var/named/chroot/var/log/named/dns_logs ls -la /var/named/chroot/var/log/named/dns_warnings
named.conf file: logging { channel warning { file "/var/log/named/dns_warnings" versions 3 size 2240k; severity warning; print-category yes; print-severity yes; print-time yes; }; channel general_dns { file "/var/log/named/dns_logs" versions 3 size 2240k; severity info; print-category yes; print-severity yes; print-time yes; }; category default { warning; }; category queries { general_dns; }; }; Logs file: [root@dns1 etc]# cd /root [root@dns1 ~]# ls -la /var/log/named/dns_logs -rwxrwxrwx 1 named named 0 Dec 22 16:05 /var/log/named/dns_logs [root@dns1 ~]# ls -la /var/log/named/dns_warnings -rwxrwxrwx 1 named named 0 Dec 22 16:06 /var/log/named/dns_warnings Both dns_logs and dns_warnings are empty. Thanks alot.
Yes, my bind is running chrooted. drwxrwxrwx 2 named named 4096 Dec 22 16:06 named Please help. Thanks alot.
Are these ls'es from inside of chroot? I believe they are not. The /var/named/chroot/var/log/named directory may not exist...
many thanks for your help. I have another problems about cache and statistic files .Both files are empty.Is anyone can help? named.conf file: options { pid-file "/var/named/chroot/var/run/named/named.pid"; directory "/var/named/chroot/var/named"; dump-file "/var/named/chroot/var/named/cache_dump.db"; statistics-file "/var/named/chroot/var/named/named_stats.txt"; auth-nxdomain no; /var/named/chroot/var/named: -rwxrwxrwx 1 named named 0 Dec 18 18:17 cache_dump.db -rwxrwxrwx 1 named named 0 Dec 18 18:17 named_stats.txt Thanks alot.
As per BIND manual: dump-file The pathname of the file the server dumps the database to when instructed to do so with rndc dumpdb. If not specified, the default is named_dump.db statistics-file The pathname of the file the server appends statistics to when instructed to do so using rndc stats. If not specified, the default is named.stats in the server's current directory. The format of the file is described in Section 6.2.14.15