Installing and Administering Internet Services

Chapter 3 91
Configuring and Administering the BIND Name Service
Configuring a Primary Master Name Server
Specifying the Number of Log File Backups
If you specify the versions (number|unlimited) options in the logging
statement, then named will retain the specified number of backup
versions of the log file by renaming them when opening.
For example, if you choose to keep 3 old versions of the file lame.log, then
just before it is opened lame.log is renamedto lame.log.2, lame.log.0
is renames to lame.log.1, and lame.log is renamed to lame.log.0.
logging Statement Syntax
Following the logging keyword is a list of statements enclosed in braces.
The syntax for the logging statement is as follows:
logging {
[channel channel_name{
(file path_name
[versions (number | unlimiter)]
[size size_spec ]
|syslog (kern | user | mail | daemon | auth | syslog |\
lpr | news | uucp | cron | authpriv | ftp| local0 |
local1 | local2 | local3 | local4 | local5 | local6 |
local7 ) | null);
[ severity (critical | error | warning | notice |
info | debug [level ] | dynamic) ; ]
[print-category yes_or_no;]
[print-severity yes_or_no;]
[print-time yes_or_no;]
};]
[category category_name {
channel_name; [ channel_name; ... ]
}; ]
. . .
};