Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2007 12:54:53 +0200
From:      Zbigniew Szalbot <zbigniew@szalbot.homedns.org>
To:        Freebsd questions <freebsd-questions@freebsd.org>
Subject:   Re: named listening on LAN
Message-ID:  <bcef0f2987aa689c803d61b599b2857b@szalbot.homedns.org>
In-Reply-To: <9041300d61c26f5b8bfda35bd2e2bada@szalbot.homedns.org>
References:  <9041300d61c26f5b8bfda35bd2e2bada@szalbot.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hello,

> This is interesting. I tried adding this to named.conf (adapted from man
> named.conf)
> /* logging {
>                channel namedlog {
>                     file /var/log/named/nlog;
>                     severity info;
>                     print-time yes;
>                     print-severity yes;
>                     print-category yes;
>                };
>                category default { namedlog; ... };
>           };
> */
> 
> Of course the above was not commented in the configuration file. But when
> starting named, it did not want to work. I had to comment the logging
> facility and then I was able to get named to work again.

I changed the above to
logging{
  channel simple_log {
    file "/var/log/named/nlog" versions 3 size 5m;
    severity info;
    print-time yes;
    print-severity yes;
    print-category yes;
  };
  category default{
    simple_log;
  };
};

Now bind does not die but but it cannot find the log file:
logging channel 'simple_log' file '/var/log/named/nlog': file not found

ls /var/log/named/*
/var/log/named/nlog

Why would named not be able to find the log when it is there? The nlog file
is owned by user bind and grup bind. 

Thank you in advance for any suggestion you may have!

Zbigniew Szalbot




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bcef0f2987aa689c803d61b599b2857b>