HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)
n
named.conf(4) named.conf(4)
(BIND 9.3)
If print-time is on, then the date and time will be logged.
print-time may be specified for a sys-
log
channel, but that is usually pointless, since
syslog also prints the date and time.
If
print-category
is on, then the category of the message is logged as well.
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 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
Time: 28-Feb-2000 15:05:32.863
Category: general
Severity: notice
Message: running
There are four predefined channels that are used for
named’s default logging, as follows:
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
};
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.
For security reasons, when the -u command-line option is used, the named.run file is created only after
named has changed to the new UID, and any debug output that is generated while named is starting up
and still running as root is discarded. If you need to capture this output, you must run the server with the
-g option and redirect standard error to a file.
Once a channel is defined, it cannot be redefined. Thus you cannot alter the built-in channels directly, but
you can modify the default logging by pointing categories at channels you have defined.
The category Phrase
Predefined categories allow you to fine-tune what messages you want to log and where you want to log
those messages to. If you do not specify a list of channels for a category, then log messages in that category
will be sent to the default category instead. If you do not specify a default category, the following
category is used:
HP-UX 11i Version 3: February 2007 − 7 − Hewlett-Packard Company 239