0
This question is a bit similar to this one but the answer that seemed to help the most is Ubuntu specific, and this is running on OSX 10.6.8.
With this logging clause:
logging {
category default {
_default_log;
};
channel _default_log {
file "/var/chroot/named/var/log/query.log";
severity info;
print-time yes;
};
};
I get this error in the system.log:
isc_log_open '/var/chroot/named/var/log/query.log' failed: file not found
This article on bind9's logging clause in the conf file says:
file 'path_name' is a quoted string defining the absolute path to the logging file e.g. "/var/log/named/namedlog.log".
But the conf is inside the jail at /var/chroot/named/etc/named.conf
and I'd like the log to be written to either /var/chroot/named/var/log/query.log
, which is inside the jail, or /Library/Logs/named.log
which is outside the jail (and is where the log was pointing to before the chrooting). Whichever I can get to work is fine.
Any help is much appreciated!
fboaventura gave a little bit more info so I gave that answer the tick, but I really appreciate the help, thanks. – Iain – 2013-01-13T16:58:43.210