dns log error

Discussion in 'General' started by davy, Jan 10, 2008.

  1. davy

    davy New Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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
     
  3. davy

    davy New Member

    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.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /var/log/named
    ?

    Is your BIND running chrooted?
     
  5. davy

    davy New Member

    Yes, my bind is running chrooted.

    drwxrwxrwx 2 named named 4096 Dec 22 16:06 named


    Please help.

    Thanks alot.
     
  6. tensor

    tensor New Member

    Are these ls'es from inside of chroot? I believe they are not.
    The /var/named/chroot/var/log/named directory may not exist...
     
  7. davy

    davy New Member

    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.
     
  8. tensor

    tensor New Member

    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
     

Share This Page