Opened 18 years ago

Closed 17 years ago

Last modified 8 years ago

#551 closed defect (fixed)

Bind 9 not logging properly

Reported by: billyoc@… Owned by: blfs-book@…
Priority: high Milestone:
Component: BOOK Version: ~CVS
Severity: normal Keywords:
Cc:

Description

The chroot environment needs to include whatever files needed for logging.

Change History (6)

comment:1 by larry@…, 18 years ago

My installation is logging in /home/named/var/log/dns_logs. Version 9.2.2, did this break with 9.2.3?

comment:2 by DJ Lucas, 17 years ago

Status: newassigned

comment:3 by DJ Lucas, 17 years ago

According to the Bind 9 Admininistrator's Reference Manual at http://www.bind9.net/Bv9ARM.ch06.html#AEN1607 , the default for logging is this:

logging {

category default { default_syslog; default_debug; }; category unmatched { null; };

};

channel default_syslog {

syslog daemon; send to syslog's daemon

facility

severity info; only send priority info

and higher

};

channel default_debug {

file "named.run"; write to named.run in

the working directory Note: stderr is used instead of "named.run" if the server is started with the '-f' option.

severity dynamic; log at the server's

current debug level

};

channel default_stderr {

stderr; writes to stderr severity info; only send priority info

and higher

};

channel null {

null; toss anything sent to

this channel

};

A quick grep of /var/log/syslog.log for "named" shows only a few entries here. and no named.run in /home/named, of course I've not hit it hard either yet. Just droping this here for when it goes to be added to the config.

comment:4 by DJ Lucas, 17 years ago

Upon further review, this bug appears to be invalid. The default options work as expected and drop into /var/log/daemon.log as my previous comment suggested, even though the default configuration I had posted eariler forgot the logging line :-). It might not be a bad idea to drop the default into the named.conf in the book so that people know where to find this.

Here is the missing line:


logging {

category default { default_syslog; default_debug; }; category unmatched { null; };

};


comment:5 by DJ Lucas, 17 years ago

Resolution: fixed
Status: assignedclosed

Ugh...it was there, just in the wrong place. Corrected addition to named.conf.

logging {

category default { default_syslog; default_debug; }; category unmatched { null; };

channel default_syslog {

syslog daemon; send to syslog's daemon

facility

severity info; only send priority info

and higher

};

channel default_debug {

file "named.run"; write to named.run in

the working directory Note: stderr is used instead of "named.run" if the server is started with the '-f' option.

severity dynamic; log at the server's

current debug level

};

channel default_stderr {

stderr; writes to stderr severity info; only send priority info

and higher

};

channel null {

null; toss anything sent to

this channel

};

};

Closing bug now as it'll be fixed momentarily.

comment:6 by bdubbs@…, 8 years ago

Milestone: old

Milestone old deleted

Note: See TracTickets for help on using tickets.