Results 1 to 4 of 4

Thread: Named error

  1. #1
    Join Date
    Aug 2012
    Posts
    24

    Named error

    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"?

  2. #2
    Join Date
    Aug 2008
    Posts
    4,695
    You can ignore this error in FreeBSD. The error will come back and the only way to change it is modifying the source code in /usr/src

    If you want a separate log file you have to set a logging clause in your named.conf

    http://www.zytrax.com/books/dns/ch7/logging.html

  3. #3
    Join Date
    Aug 2012
    Posts
    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

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,212
    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

Similar Threads

  1. MySQLD and named error in DA
    By IcyTexx in forum General Technical Discussion & Troubleshooting
    Replies: 3
    Last Post: 12-27-2009, 01:52 PM
  2. Error in named configuration
    By latheesan in forum DNS
    Replies: 3
    Last Post: 09-03-2008, 05:28 PM
  3. Replies: 2
    Last Post: 08-13-2008, 05:20 AM
  4. named error
    By duock in forum General Technical Discussion & Troubleshooting
    Replies: 0
    Last Post: 10-05-2006, 09:22 AM
  5. Named::readDB error
    By quags in forum General Technical Discussion & Troubleshooting
    Replies: 3
    Last Post: 09-23-2003, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •