syslog and bind
Kevin Darcy
kcd at daimlerchrysler.com
Fri Oct 20 22:51:43 UTC 2000
named needs to bind to port 53, which is in the reserved range, so it needs
superuser access.
You seem a little confused about how syslog works. named can't tell syslog
"write this message to file X". named can only send messages to syslog, with a
certain "facility" and "severity", and syslog then decides, based on those
values and its configuration (usually syslog.conf) whether or not to write the
message to a file, and if so, what file.
If you want to direct named's logging output to files in the absence of being
able to configure syslog to do so, then I wouldn't use syslog at all. Just
configure named to write to the files directly. That should actually be a more
efficient way to do things anyway.
- Kevin
Riley McIntire wrote:
> Greetings:
> I have need to operate a name server on a system without root access and
> without read access to /var/log/messages.
> bind is 8.2.2-p5 running on FreeBSD 4.1
> Is it possible to run a userland instance of syslogd? Or use another logging
> utility?
> I've tried this in the named.conf file without any luck:
>
> logging {
> channel syslog_errors {
> syslog user;
> file "/usr/home/vweb/var/log/messages";
> severity error;
> };
>
> channel default_syslog {
> syslog daemon;
> file "/usr/home/vweb/var/log/messages";
> severity info;
> };
> };
>
> And this to test running a separate syslogd:
>
> syslogd -f /usr/home/vweb/etc/syslog.conf -p /usr/home/vweb/var/run/log
> syslogd: child pid 74533 exited with return code 1
>
> Any ideas?
>
> Thanks much,
>
> Riley
>
> "On the journey to enlightenment, it is far better to travel hopefully than
> to arrive"
> - Confucius
More information about the bind-users
mailing list