+ Responder ao Tópico



  1. #1
    dogmatico
    Visitante

    Padrão BIND não inicia no Conectiva 10

    Olá, estou tentando configurar o bind com o named.conf abaixo. Mas ele não inicia, configurei todos os arquivos. Este mesmo código funciona em um BSD, mas no COnectiva ele falha ao iniciar. Por favor, alguem pode me ajudar, ou se puderem enviar uma configuração que funcione bem no Conectiva 10 e que dê para configurar vários dominios.

    Tenho apenas 1 IP, o outro IP para o DNS ficará em outra máquina já configurada.

    Agradeço qualquer ajuda.

    options {
    directory "/var/named";

    // In addition to the "forwarders" clause, you can force your name
    // server to never initiate queries of its own, but always ask its
    // forwarders only, by enabling the following line:
    //
    // forward only;

    // If you've got a DNS server around at your upstream provider, enter
    // its IP address here, and enable the line below. This will make you
    // benefit from its cache, thus reduce overall DNS traffic in the Internet.

    forwarders {
    200.176.0.10;
    200.176.0.12;
    };

    /*
    * If there is a firewall between you and nameservers you want
    * to talk to, you might need to uncomment the query-source
    * directive below. Previous versions of BIND always asked
    * questions using port 53, but BIND 8.1 uses an unprivileged
    * port by default.
    */
    query-source address * port 53;

    /*
    * If running in a sandbox, you may have to specify a different
    * location for the dumpfile.
    */
    // dump-file "s/named_dump.db";
    };

    // Note: the following will be supported in a future release.
    /*
    host { any; } {
    topology {
    127.0.0.0/8;
    };
    };
    */

    // Setting up secondaries is way easier and the rough picture for this
    // is explained below.
    //
    // If you enable a local name server, don't forget to enter 127.0.0.1
    // into your /etc/resolv.conf so this server will be queried first.
    // Also, make sure to enable it in /etc/rc.conf.

    zone "." {
    type hint;
    file "named.root";
    };

    zone "0.0.127.IN-ADDR.ARPA" {
    type master;
    file "localhost.rev";
    };

    zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
    type master;
    file "localhost.rev";
    };

    // NB: Do not use the IP addresses below, they are faked, and only
    // serve demonstration/documentation purposes!
    //
    // Example secondary config entries. It can be convenient to become
    // a secondary at least for the zone where your own domain is in. Ask
    // your network administrator for the IP address of the responsible
    // primary.
    //
    // Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
    // (This is the first bytes of the respective IP address, in reverse
    // order, with ".IN-ADDR.ARPA" appended.)
    //
    // Before starting to setup a primary zone, better make sure you fully
    // understand how DNS and BIND works, however. There are sometimes
    // unobvious pitfalls. Setting up a secondary is comparably simpler.
    //
    // NB: Don't blindly enable the examples below. :-) Use actual names
    // and addresses instead.
    //
    // NOTE!!! FreeBSD can run bind in a sandbox (see named_flags in rc.conf).
    // The directory containing the secondary zones must be write accessible
    // to bind. The following sequence is suggested:
    //
    // mkdir /etc/namedb/s
    // chown bind:bind /etc/namedb/s
    // chmod 750 /etc/namedb/s

    zone "nomedoservidor"
    {
    type master;
    file "nomedoservidor";
    };

    zone "nomedodominio.com.br"
    {
    type master;
    file "nomedodominio.com.br";
    };


    //zone "0.168.192.IN-ADDR.ARPA"
    //{
    // type master ;
    // file "local.rev" ;
    //};


    /*zone "0.168.192.IN-ADDR.ARPA"
    {
    type master;
    file "slave.rev";
    };*/

    zone "163.207.200.IN-ADDR.ARPA"
    {
    type master;
    file "internet.rev";
    };

  2. #2
    robsonzornitta
    Visitante

    Padrão eh o seguinte!!!!

    em primeiro lugar gostaria de saber se o teu named roda em /var/named ou /chroot/var/named, bom se rodar ele roda na gaiola (melhor assim, mais seguro!!) ai depois outra dica muito boa tente achar uns arquivos de modelo no teu ctl 10 ai provalvemnet ele se encontra em /usr/share/doc/bind-?.?.?.?/
    utilize esses arquivos como base pra rodar o bind, tua verssaum deve ser a 9.2 ou 9.3.
    se naum tiver ai vai uns confs pra tu fazer rodar...

    arquivo /etc/named.conf:

    // secret must be the same as in /etc/rndc.conf
    key mykey {
    algorithm hmac-md5;
    secret "ttriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
    };

    controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; } keys { mykey; };
    };

    options {
    directory "/var/named/";
    pid-file "/var/run/named/named.pid"; // Put pid file in working dir
    auth-nxdomain yes;
    };

    zone "." {
    type hint;
    file "named.ca";
    };


    zone "0.0.127.in-addr.arpa" {
    type master;
    file "named.local";
    };


    zone "ac" { type delegation-only; };
    zone "cc" { type delegation-only; };
    zone "com" { type delegation-only; };
    zone "cx" { type delegation-only; };
    zone "museum" { type delegation-only; };
    zone "net" { type delegation-only; };
    zone "nu" { type delegation-only; };
    zone "ph" { type delegation-only; };
    zone "sh" { type delegation-only; };
    zone "tm" { type delegation-only; };
    zone "ws" { type delegation-only; };

    zone "antek.teste" {
    type master;
    file "mandrakesoft.zone";
    allow-update { key mykey; };
    };

    zone "7.168.192.in-addr.arpa" {
    type master;
    file "mandrakesoft.reversed";
    allow-update { key mykey; };
    };

    //Final do arquivo do NAMED

    Arquivo /etc/rndc.conf:

    # Start of rndc.conf
    key mykey {
    algorithm hmac-md5;
    secret "ttriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
    };

    options {
    default-key mykey;
    default-server 127.0.0.1;
    default-port 953;
    };
    # End of rndc.conf

    Arquivo /etc/rndc.key:

    key mykey {
    algorithm hmac-md5;
    secret "ttriCelUSbPMypSjImBsiTHMauOumRPMkdBjoxVINAx0vxJZNRKGWzFCKibad";
    };

    Arquivo /var/named/mandrakesoft.reversed

    $ORIGIN .
    $TTL 86400 ; 1 day
    7.168.192.in-addr.arpa IN SOA sunlight.antek.teste. robson.antek.teste. (
    2001042702 ; serial
    28800 ; refresh (8 hours)
    14400 ; retry (4 hours)
    3600000 ; expire (5 weeks 6 days 16 hours)
    86400 ; minimum (1 day)
    )
    NS sunlight.antek.teste.
    $ORIGIN 7.168.192.in-addr.arpa.
    $TTL 3600 ; 1 hour
    178 PTR sunlight.antek.teste.
    23 PTR moonlight.antek.teste.

    Arquivo /var/named/mandrakesoft.zone

    $ORIGIN .
    $TTL 86400 ; 1 day
    antek.teste IN SOA sunlight.antek.teste. robson.antek.teste. (
    2001042703 ; serial
    86400 ; refresh (1 day)
    21600 ; retry (6 hours)
    3600000 ; expire (5 weeks 6 days 16 hours)
    3600 ; minimum (1 hour)
    )
    NS sunlight.antek.teste.
    $ORIGIN antek.teste.
    $TTL 86400 ; 1 day
    localhost A 127.0.0.1
    moonlight A 192.168.7.8
    sunlight A 192.168.7.8

    Arquivo /var/named/named.local

    $TTL 86400
    @ IN SOA localhost. root.localhost. (
    1997022700 ; Serial
    28800 ; Refresh
    14400 ; Retry
    3600000 ; Expire
    86400 ) ; Minimum
    IN NS localhost.

    1 IN PTR localhost.

    mude os arquivos como vc quiser esse vai dar certu
    mas os arquivos estaum ai!!!!

  3. #3
    robsonzornitta
    Visitante

    Padrão depois dissu tudu!!

    bom depois dissu de tu criado e modificadu teus arquivos tu vai ter que verificar se exite um diretório chamado: /var/run/named, bom se naum tiver o crie pq vai precisar....

    ok depois de criadu faça o seguinte chown named.named /var/named

    e verifique se estarta certim

    qualquer coisa me manda a parte do arquivo /var/log/messages

    com o named pra dar uma olhada!!!!

  4. #4
    dogmatico
    Visitante

    Padrão BIND não inicia no Conectiva 10

    Muito obrigado Robson,

    Realmente era a falta dos diretórios, mas o engraçado é que eles estavam faltando na pasta /usr/local/

    Então dupliquei a pasta /var/named/ e coloquei tudo no /usr/local/ não entendi muito bem o por que, mas funcionou.

    []s

  5. #5

    Padrão BIND não inicia no Conectiva 10

    ou eu estava passando pelo mesmo no meu tópico da uma olhada nele que os caras me ajudaram e agora esta startando no meu só tá faltando pouco pra acabar de funcionar.
    também to usando o conectiva 10

  6. #6
    dogmatico
    Visitante

    Padrão BIND não inicia no Conectiva 10

    Estava tudo indo bem e funcionando, mas agora o bind não inicia mais e ao testar o teste reva no item

    13-May-2005 17:13:10.194 client 200.207.163.46#1093: received notify for zone '163.207.200.IN-ADDR.ARPA'

    e qdo digito ctrl+c aparece

    13-May-2005 17:13:18.002 shutting down
    13-May-2005 17:13:18.002 stopping command channel on 127.0.0.1#953
    13-May-2005 17:13:18.003 no longer listening on 127.0.0.1#53
    13-May-2005 17:13:18.003 no longer listening on 192.168.0.1#53
    13-May-2005 17:13:18.003 no longer listening on 200.207.163.46#53
    13-May-2005 17:13:18.005 exiting


    Alguem sabe oq pode ter acontecido? estava tudo funcionando e foi só reiniciar que parou de funcionar.

  7. #7
    robsonzornitta
    Visitante

    Padrão ai velhu!!!

    teh estranhio eim?

    parece que ele naum tah achandu o ip especificado ou tah batendo nio ip como c jah existisse algeim com esse ip reservado (domínio) a dica que eu te doh eh vc primeiro colocar o teste soh na lan interna e depois pra fora soh pra critério de teste se rodar certim cum o ip da lan ai sim esse ip tah registrado como reservado!!!

  8. #8
    dogmatico
    Visitante

    Padrão BIND não inicia no Conectiva 10

    Pessoal,

    Resolvido, parece ser uma falha ou do bind ou do conectiva (estou me arrependendo de não ter insistido no slackware) o problema estava no arquivo de boot do named.

    Para iniciar eu tive de digitar antes

    /usr/local/sbin/named

    e depois tive de alterar todos os paths, ele só estava reconhecendo o /usr/sbin/ e o /etc/named/

    e aí sim dar o ./named start

    os arquivos estavam em /usr/local/sbin/ e /etc/named/etc/ então modifiquei os paths e parece que agora está normal. Deve ser algum problema com o Webmin do COnectiva 10. Foi feito para facilitar mas dá muito problema. VAmos ver se agora com a compra pela Mandrake o sistema melhora um pouco.

    []s e obrigado a todos

  9. #9
    robsonzornitta
    Visitante

    Padrão legal!!!!

    ai legal mais uma pro curriculo HAuiAHiUAHuiAHuiHAU

    eh issu ai amigo! 8) :good: