绑定configuration为将日志文件大小限制为2米,并添加最多3个版本的日志文件。 在testing此绑定服务器期间,如果文件大小超过2米,则发生绑定不会停止logging。 在testing此绑定服务器期间,发生绑定不会添加例如“bind.log.1”,“bind.log.2”等重新绑定后。
有人能帮助我吗?
[...] include "/etc/bind/named.conf.log";
logging { channel update_debug { file "/var/log/bind/update_debug.log" versions 3 size 2m; severity debug; print-severity yes; print-time yes; }; channel security_info { file "/var/log/bind/security_info.log" versions 3 size 2m; severity notice; print-severity yes; print-time yes; }; channel bind_log { file "/var/log/bind/bind.log" versions 3 size 2m; severity info; print-category yes; print-severity yes; print-time yes; }; category default { bind_log; }; category lame-servers { null; }; category update { update_debug; }; category update-security { update_debug; }; category security { security_info; }; };
root@ns1:/var/log/bind# ls -la total 72 drwxrwxr-x 2 root bind 4096 Sep 16 11:52 . drwxr-xr-x 9 root root 4096 Sep 16 11:45 .. -rwxrwxr-- 1 root bind 56236 Sep 16 13:56 bind.log -rwxrwxr-- 1 root bind 0 Sep 16 11:52 lame_info.log -rwxrwxr-- 1 root bind 105 Sep 16 13:42 security_info.log -rwxrwxr-- 1 root bind 0 Sep 16 11:52 update_debug.log