Bind 9 Administrator Reference Manual

Chapter 6. BIND 9 Configuration Reference
If print-time has been turned on, then the date and time will be logged. print-time may be specified for
a syslog channel, but is usually pointless since syslog also prints the date and time. If print-category is
requested, then the category of the message will be logged as well. Finally, if print-severity is on, then
the severity level of the message will be logged. The print- options may be used in any combination, and
will always be printed in the following order: time, category, severity. Here is an example where all three
print- options are on:
28-Feb-2000 15:05:32.863 general: notice: running
There are four predefined channels that are used for nameds default logging as follows. How they are
used is described in Section 6.2.10.2.
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" { // writes to stderr
stderr;
severity info; // only send priority info
// and higher
};
channel "null" {
null; // toss anything sent to
// this channel
};
The default_debug channel has the special property that it only produces output when the server’s debug
level is nonzero. It normally writes to a file named.run in the server’s working directory.
54