Named error

Royal Flash

Verified User
Joined
Aug 19, 2012
Messages
24
Hello

Detected an error in /var/ log/messages - "Named: the working directory is not writable". I found a solution: change the owner of the directory /var/named/etc/namedb to user/group bind:

# chown bind: bind /var/named/etc/namedb

then the error disappeared.

Since I am not a professional in the administration of FreeBSD I had two questions:

1. Not there be any problems after the change of ownership /var/named/etc/namedb?
2. Named for why not a separate log file, and the messages are written to the log "messages"?
 

Royal Flash

Verified User
Joined
Aug 19, 2012
Messages
24
Thanks for the reply.

Gone is the day, but no errors (there were several reboots). If you are in the future, I will not pay attention to her.

A separate log file for Bind, I added the instructions here:
http://petrenco.com/freebsd.php?txt=152 (in Russian).

Brief Instructions:
Add to /etc/syslog.conf:
!named
*.* /var/log/named.log

Next:
#touch /var/log/named.log
#chown bind:bind /var/log/named.log
#/etc/rc.d/syslogd restart
Restart Named
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,902
Location
GMT +7.00
More general way would be to update named.conf and add something like this:

Code:
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;
  };
};
http://www.zytrax.com/books/dns/ch7/logging.html
 
Top