Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

Appendix C 207
BIND 8.1 Enhanced Features
BIND 8 Highlights
The category phrase.
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
file “<stderr>”; # this is illustrative only; there’s currently
# no way of specifying an internal file
# descriptor in the configuration language.
severity info; # only send priority info and higher
};
channel null {
null; # toss anything sent to this channel
};
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
There are many categories, so you can send the logs you want to see
wherever you want, without seeing logs you don’t want. If you don’t
specify a list of channels for a category, then log messages in that
category will be sent to the default category instead. If you don’t specify
a default category, the following “default” is used:
category default { default_syslog; default_debug; };
As an example, you want to log security events to a file, but you also
want keep the default logging behavior. You’d specify the following:
channel my_security_channel {
file “my_security_file”;
severity info
};
category security { my_security_channel; default_syslog; default_debug;
};
To discard all messages in a category, specify the null channel:
category lame-servers { null; };
category cname { null; };
The following categories are available:
default The catch-all. Many things still aren’t
classified into categories, and they all
end up here. Also, if you don’t specify
any channels for a category, the default