Valeu.. amigo.. resolveu.. obrigado..
entendi tambem o ambiente de chroot.

2008/7/29 c0re dumped <[EMAIL PROTECTED]>:
> Veja bem, para o named, só existe tudo que está debaixo de file
> "/var/named/", supondo que voce esta rodando com as flags "-t
> /var/named". Em outras palavras: para o bind o "/" é "/var/named/"
>
> Com isso em mente faça o seguinte:
>
> 1 - dentro de /var/named/var/log crie o(s) arquivo(s) que você deseja;
> 2 - no named use os caminhos relativos ao chroot. Por exemplo, se vc
> criou o arquivo /var/named/var/log/named.log no named.conf  voce vai
> usar /var/log/named.log, pois vc está num ambiente chrooted;
> 3 - restart o named;
>
>
> 2008/7/29 Thiago Gomes <[EMAIL PROTECTED]>:
>> Alterei.. aqui esta os paramentros..
>>
>> ptions {
>>       // Relative to the chroot directory, if any
>>       directory       "/etc/namedb";
>>       pid-file        "/var/run/named/pid";
>>       dump-file       "/var/dump/named_dump.db";
>>       statistics-file "/var/stats/named.stats";
>>       version "";
>> };
>>
>> # Direcionar o log para o arquivo
>> logging {
>>  channel systemlog {
>>    file "/var/named/var/log/named.log";
>>    severity debug;
>>    print-time yes;
>>  };
>>  channel audit_log {
>>    file "/var/named/var/log/security.log";
>>    severity debug;
>>    print-time yes;
>>  };
>>  channel xfer_log {
>>    file "/var/named/var/log/xfer.log";
>>    severity debug;
>>    print-time yes;
>>  };
>>
>> 2008/7/29 c0re dumped <[EMAIL PROTECTED]>:
>>> Você alterou os parametros no named.conf ?
>>>
>>> Perceba que vc usar os mesmos valores do seu named.conf original
>>> (/var/log/named/named.log), ele deve apontar para o arquivo que está
>>> no diretorio usado para chroot.
>>>
>>>
>>>
>>> 2008/7/29 Thiago Gomes <[EMAIL PROTECTED]>:
>>>> Fiz alteração e não deu certo..
>>>>
>>>>
>>>> Jul 29 15:07:55 ns1 named[1226]: logging channel 'systemlog' file
>>>> '/var/named/var/log/named.log': file not found
>>>> Jul 29 15:07:55 ns1 named[1226]: logging channel 'audit_log' file
>>>> '/var/named/var/log/security.log': file not found
>>>> Jul 29 15:07:55 ns1 named[1226]: logging channel 'xfer_log' file
>>>> '/var/named/var/log/xfer.log': file not found
>>>> Jul 29 15:07:55 ns1 named[1226]: isc_log_open
>>>> '/var/named/var/log/named.log' failed: file not found
>>>> Jul 29 15:07:55 ns1 named[1226]: isc_log_open
>>>> '/var/named/var/log/security.log' failed: file not found
>>>>
>>>>
>>>> [EMAIL PROTECTED] /var/named/var/log]# ls -ls
>>>> total 0
>>>>   0 -rw-r--r--    1 bind     wheel           0 Jul 29 12:21 named.log
>>>>   0 -rw-r--r--    1 bind     wheel           0 Jul 29 12:21 security.log
>>>>   0 -rw-r--r--    1 bind     wheel           0 Jul 29 12:21 xfer.log
>>>>
>>>> [EMAIL PROTECTED] /var/named/var/log]#ps -aux | grep named
>>>> root          427  0.0  0.5  3156  1196  ??  Ss    1:37PM   0:00.05
>>>> /usr/sbin/syslogd -l /var/run/log -l /var/named/
>>>> bind         1226  0.0  5.9 19536 14956  ??  Is    3:07PM   0:00.12
>>>> /usr/sbin/named -t /var/named -u bind
>>>>
>>>>
>>>>
>>>> Alguem pode me ajudar..
>>>>
>>>> 2008/7/29 Cristina Fernandes Silva <[EMAIL PROTECTED]>:
>>>>> Aproveitando..
>>>>>
>>>>> com eu sei se o dns esta rodando em chroot ?
>>>>>
>>>>> 2008/7/29 Cristiano (chm0d) <[EMAIL PROTECTED]>:
>>>>>> Exato.
>>>>>>
>>>>>> 2008/7/29 c0re dumped <[EMAIL PROTECTED]>
>>>>>>
>>>>>>> Muito provavelmente o seu named está rodando em chroot.
>>>>>>>
>>>>>>> Sugiro que coloque o arquivo em /var/named/var/log/ e dê as permissões
>>>>>>> necessárias.
>>>>>>>
>>>>>>>
>>>>>>> 2008/7/28 Thiago Gomes <[EMAIL PROTECTED]>:
>>>>>>> > Galera,
>>>>>>> >
>>>>>>> > Estou com um problema no meu DNS.. não estou conseguindo fazer ele
>>>>>>> > logar as messagens do meu
>>>>>>> > dns.
>>>>>>> >
>>>>>>> > O Erro é este
>>>>>>> >
>>>>>>> > tail -f /var/log/messages
>>>>>>> >
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: starting BIND 9.5.0-P1 -t /var/named 
>>>>>>> > -u
>>>>>>> bind
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: logging channel 'systemlog' file
>>>>>>> > '/var/log/named/named.log': file not found
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: logging channel 'audit_log' file
>>>>>>> > '/var/log/named/security.log': file not found
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: logging channel 'xfer_log' file
>>>>>>> > '/var/log/named/xfer.log': file not found
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: isc_log_open
>>>>>>> > '/var/log/named/named.log' failed: file not found
>>>>>>> > Jul 28 19:11:22 ns1 named[2042]: isc_log_open
>>>>>>> > '/var/log/named/security.log' failed: file not found
>>>>>>> >
>>>>>>> > veja aqui parte de configuração do meu named.conf.
>>>>>>> >
>>>>>>> > logging {
>>>>>>> >   channel systemlog {
>>>>>>> >      file "/var/log/named/named.log";
>>>>>>> >      severity debug;
>>>>>>> >      print-time yes;
>>>>>>> >   };
>>>>>>> >   channel audit_log {
>>>>>>> >      file "/var/log/named/security.log";
>>>>>>> >      severity debug;
>>>>>>> >      print-time yes;
>>>>>>> >   };
>>>>>>> >   channel xfer_log {
>>>>>>> >      file "/var/log/named/xfer.log";
>>>>>>> >      severity debug;
>>>>>>> >      print-time yes;
>>>>>>> >   };
>>>>>>> >   category default { systemlog; };
>>>>>>> >   category security { audit_log; systemlog; };
>>>>>>> >   category config { systemlog; };
>>>>>>> >   category xfer-in { xfer_log; };
>>>>>>> >   category xfer-out { xfer_log; };
>>>>>>> >   category notify { audit_log; };
>>>>>>> >   category update { audit_log; };
>>>>>>> >   category queries { audit_log; };
>>>>>>> >   category lame-servers { audit_log; };
>>>>>>> > };
>>>>>>> >
>>>>>>> >
>>>>>>> > Permissoes do direitorio /var/log/named
>>>>>>> >
>>>>>>> > 0 -rwx------    1 bind     bind            0 Jul 28 16:39 named.log
>>>>>>> > 0 -rwx------    1 bind     bind            0 Jul 28 16:40 security.log
>>>>>>> > 0 -rwx------    1 bind     bind            0 Jul 28 16:40 xfer.log
>>>>>>> >
>>>>>>> > Alguem pode me ajudar..
>>>>>>> > -------------------------
>>>>>>> > Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>>>> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> http://www.webcrunchers.com/crunch/
>>>>>>>
>>>>>>> http://www.myspace.com/whippersnappermusic
>>>>>>> http://www.purevolume.com/whippersnapper
>>>>>>> -------------------------
>>>>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Cristiano Fernandes
>>>>>> SysAdmin Brasiltelecom
>>>>>> Google is my shepherd, no want shall I know
>>>>>> -------------------------
>>>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>>
>>>>> -------------------------
>>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>>
>>>> -------------------------
>>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>>
>>>
>>>
>>>
>>> --
>>> http://www.webcrunchers.com/crunch/
>>>
>>> http://www.myspace.com/whippersnappermusic
>>> http://www.purevolume.com/whippersnapper
>>> -------------------------
>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>
>
>
> --
> http://www.webcrunchers.com/crunch/
>
> http://www.myspace.com/whippersnappermusic
> http://www.purevolume.com/whippersnapper
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

Responder a