[Ubuntu-BR] Como ativar o log do servidor dns (bind9) ?

hamacker sirhamacker em gmail.com
Terça Novembro 27 15:08:01 UTC 2012


Outro dia estava querendo consultar o log do bind9 e não achei,
ao pesquisar o assunto descobri que ele não esta habilitado por padrao
e encontrei o que parecia uma solucao, no named.conf inclui a linha :
include "/etc/bind/named.conf.log"

E neste arquivo, as linhas :
// considerando habilitar log de erros fatais
logging {
   channel default_file {
     file "/var/log/bind.log" size 10m;
     severity fatal;
     print-time yes;
     print-severity yes;
     print-category yes;
  };
  category default{
     default_file;
  };
};

Contudo, o DNS não inicia de jeito nenhum. Se faço um remark no include
entao inicia.
Então deve ter algo errado no arquivo acima, mas não acho nenhum erro.

Qualquer ajuda é bem vinda.



More information about the ubuntu-br mailing list