Logging channel: FILE NOT FOUND

Barry Margolin barmar at alum.mit.edu
Thu Apr 27 22:51:34 UTC 2006


In article <e2qr7s$1mmf$1 at sf1.isc.org>, "Cliff Hayes" <chayes at afo.net> 
wrote:

> I am a new Bind user.  I have set up a DNS server and it is working, but I
> need to see logs.
> 
> I un-commented the logging section of named.conf as follows:
> 
> logging{
>   channel simple_log {
>     file "/var/log/named/bind.log" versions 3 size 5m;
>     severity warning;
>     print-time yes;
>     print-severity yes;
>     print-category yes;
>   };
>   category default{
>     simple_log;
>   };
> };
> 
> And when I do, I get the following in /var/log/messages:
> 
> Apr 27 09:37:23 ns2 named[8557]: logging channel 'simple_log' file
> '/var/log/named/bind.log': file not found
> 
> I have tried everything I know:
> 
> - changing directory permissions for /var/log & /var

What about /var/log/named?

> - changing file permissions
> - creating a blank file ahead of time
> - changing the name of the file in the logging section
> 
> No matter what I do, the result is always the same.

Are you running named in chroot?  If so, it will look for 
<root>/var/log/named/bind/log.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list