差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
dns:bind_log [2017/02/23 09:40]
jal
dns:bind_log [2018/05/16 07:21]
jal
行 13: 行 13:
 <​code>​ <​code>​
 logging { logging {
-        ​channel default_log { + channel default_log { 
-                file "/​var/​log/​named/​dns-default.log"​ versions 10 size 20m; + file "/​var/​log/​named/​dns-default.log"​ versions 10 size 20m; 
-                severity info; + print-time yes; 
-        };+ severity info; 
 + };
  
-        ​channel lamer_log { + channel lamer_log { 
-                file "/​var/​log/​named/​dns-lamer.log"​ versions 3 size 10m; + file "/​var/​log/​named/​dns-lamer.log"​ versions 3 size 10m; 
-                severity info; + severity info; 
-                print-severity yes; + print-severity yes; 
-                print-time yes; + print-time yes; 
-                print-category yes; + print-category yes; 
-        };+ };
  
-        ​channel query_log { + channel query_log { 
-                file "/​var/​log/​named/​dns-query.log"​ versions 10 size 10m; + file "/​var/​log/​named/​dns-query.log"​ versions 10 size 10m; 
-                severity info; + severity info; 
-                print-time yes; + print-time yes; 
-        };+ };
  
-        ​channel security_log { + channel security_log { 
-                file "/​var/​log/​named/​dns-security.log"​ versions 3 size 1m; + file "/​var/​log/​named/​dns-security.log"​ versions 3 size 1m; 
-                severity info; + severity info; 
-                print-severity yes; + print-severity yes; 
-                print-time yes; + print-time yes; 
-                print-category yes; + print-category yes; 
-        };+ };
  
-        ​channel config_file { + channel config_file { 
-                file "/​var/​log/​named/​dns-config.log"​ versions 3 size 5m; + file "/​var/​log/​named/​dns-config.log"​ versions 3 size 5m; 
-                severity dynamic; + severity dynamic; 
-                print-time yes; + print-time yes; 
-        };+ };
  
-        ​channel dnssec_log { + channel dnssec_log { 
-                file "/​var/​log/​named/​dns-dnssec.log"​ versions 3 size 20m; + file "/​var/​log/​named/​dns-dnssec.log"​ versions 3 size 20m; 
-                print-time yes; + print-time yes; 
-                print-category yes; + print-category yes; 
-                print-severity yes; + print-severity yes; 
-                severity debug 3; + severity debug 3; 
-        };+ };
  
-        ​category dnssec { dnssec_log; }; + category dnssec { dnssec_log; }; 
-        category lame-servers { lamer_log; }; + category lame-servers { lamer_log; }; 
-        category security{ security_log;​};​ + category security{ security_log;​};​ 
-        category config { config_file;​ }; + category config { config_file;​ }; 
-        category queries { query_log;​};​ + category queries { query_log;​};​ 
-        category default { default_log;​};​+ category default { default_log;​};​
 }; };
- 
 </​code>​ </​code>​