named listening on LAN

Zbigniew Szalbot zbigniew at szalbot.homedns.org
Wed Jul 11 10:55:01 UTC 2007


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



More information about the freebsd-questions mailing list