[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BIND 9 questions



On Wed 2003.07.02 at 15:03 -0500, Mark D Robinson wrote:

> After an initial set of errors, I thought that because BIND is chrooted to /var/named that it couldn't access /dev/null, so based on the mknod man page and /dev/MAKEDEV, I ran
> mknod -m a=rw /var/named/dev/null c 2 2
> and changed the file mode to crw-rw-rw-. Now I get these errors:
> 
> Jul  2 14:18:55 artemis named[8491]: /usr/src/usr.sbin/bind/lib/isc/unix/errno2result.c:109: unexpected error:
> Jul  2 14:18:55 artemis named[8491]: unable to convert errno to isc_result: 6: Device not configured
> Jul  2 14:18:55 artemis named[8491]: could not configure root hints from '/dev/null': unexpected error
 
/var is mount'ed nodev by default ( mount | grep /var ) ...

> My other question regards the log file. Rob has some messages going to a separate log file.
> 
> channel audit_log {
>       // Send the security related messages to a separate file.
>       file "/var/named/named.log";
>       severity debug;
>       print-time yes;
> };
> 
> But when I try this, I get this error message
> 
> Jul  2 13:38:16 artemis named[31373]: logging channel 'audit_log' file '/var/named/named.log': file not found
> 
> Named still starts, but it doesn't create the log file. I tried using /named.log or even /master/named.log, but then I get "access denied" errors. Any ideas on what I'm doing wrong here?

if you have the path correct within the chroot, then check permissions
(hint: named.named)

okan

--