Para separar o arquivo de log do serviço bind9, basta adicionar a seção logging
no arquivo name.conf.local
, conforme abaixo:
logging {
channel default_file {
file "/var/log/named/default.log" versions 5 size 5m;
severity notice;
print-severity yes;
print-time yes;
};
channel general_file {
file "/var/log/named/general.log" versions 3 size 5m;
severity dynamic; //notice;
print-severity yes;
print-time yes;
};
channel database_file {
file "/var/log/named/database.log" versions 3 size 5m;
severity dynamic;
print-severity yes;
print-time yes;
};
channel queries_file {
file "/var/log/named/queries.log" versions 3 size 5m;
severity dynamic;
print-severity yes;
print-time yes;
};
channel client_file {
file "/var/log/named/client.log" versions 3 size 5m;
severity dynamic;
print-severity yes;
print-time yes;
};
channel resolver_file {
file "/var/log/named/resolver.log" versions 3 size 5m;
severity dynamic;
print-severity yes;
print-time yes;
};
channel security_file {
file "/var/log/named/security.log" versions 3 size 10m;
severity dynamic;
print-time yes;
};
category security { security_file; };
category default{ default_file; };
category general { general_file; };
category database { database_file; };
};
Aqui descreva o significado de cada palavra nesta seção.