+ Responder ao Tópico



  1. #1

    Question Ajuda com DNS

    Galera.

    Estou migrando o servidor DNS interno da minha rede de Debian 5 para Debian 6.
    Mas estou tendo problemas com a resolução de nomes internos. A resolução de nomes externos está funcionando normalmente.
    Apenas copiei os scripts do antigo server para o novo, mas internamente os nomes não são resolvidos. As mesmas configurações que funcionavam no debian 5 não funcionam no 6.

    Aqui vão os arquivos de configuração:

    named.conf
    // This is the primary configuration file for the BIND DNS server named.
    //
    // Please read /usr/share/doc/bind9/README.Debian.gz for information on the
    // structure of BIND configuration files in Debian, *BEFORE* you customize
    // this configuration file.
    //
    // If you are just adding zones, please do that in /etc/bind/named.conf.local
    //
    // Configuração servidor DNS interno - UTFPR/PB
    // Comissão de Redes: Prof. Fábio Favarim
    // Analista Rudinei Silvestro

    include "/etc/bind/named.conf.options";

    acl interno {
    127.0.0.0/8;
    172.29.0.0/16;
    };


    view "intranet" {
    match-clients { interno; };
    recursion yes;

    // prime the server with knowledge of the root servers
    zone "." {
    type hint;
    file "/etc/bind/db.root";
    };

    // be authoritative for the localhost forward and reverse zones, and for
    // broadcast zones as per RFC 1912

    zone "localhost" {
    type master;
    file "/etc/bind/db.local";
    };

    zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";
    };

    zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";
    };

    zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";
    };

    zone "pb.utfpr.edu.br"{
    type master;
    file "/etc/bind/utfpr/db.intranet";
    };

    zone "29.172.in-addr.arpa"{
    type master;
    file "/etc/bind/utfpr/db.29.172";
    };


    };

    // servidores na DMZ - IPs válidos
    view "internet" {
    match-clients { any; };
    recursion no;
    zone "pb.utfpr.edu.br"{
    type master;
    file "/etc/bind/utfpr/db.internet";
    };
    };
    db.intranet
    ;
    ; BIND zone file for pb.utfpr.edu.br
    ;

    $TTL 604800
    @ IN SOA DNSInterno.pb.utfpr.edu.br. admin.pb.utfpr.edu.br. (
    2011080310 ; Serial YYYYMMDDHH
    8H ; refresh
    2H ; retry
    4W ; expire
    1D ) ; default TTL
    ;

    pb.utfpr.edu.br. IN NS DNSInterno.pb.utfpr.edu.br

    ;wpad IN A 172.29.150.138

    DNSInterno A 172.29.150.143

    espelhos A 172.29.222.80
    arquivos-coinf A 172.29.150.11
    chamados-coinf A 172.29.150.12
    servicos-coinf A 172.29.150.13
    plano A 172.29.150.14
    mapasmentais A 172.29.150.15

    samax A 172.29.200.43
    scanner-proem CNAME samax


    wsus A 172.29.150.131
    cogeti A 172.29.150.130
    matlab A 172.29.150.132
    temperatura A 172.29.111.111

    chamados CNAME chamados-coinf
    arquivos CNAME arquivos-coinf
    cisco CNAME arquivos-coinf
    mirror CNAME espelhos
    disut CNAME cogeti
    arquivos-cogeti CNAME cogeti
    coads CNAME coinf
    coenc CNAME coinf
    psa CNAME plano
    $include "/etc/bind/utfpr/db.ipsdmz"
    reverso db.29.172
    ;
    ; BIND zone file for 172.29.x.x
    ;

    $TTL 3D
    @ IN SOA pb.utfpr.edu.br. root.pb.utfpr.edu.br. (
    2011080310 ; serial AAAAMMDDHH
    8H ; refresh
    2H ; retry
    4W ; expire
    1D ) ; minimum

    IN NS DNSInterno.pb.utfpr.edu.br


    150.143 PTR DNSInterno.pb.utfpr.edu.br

    222.80 PTR espelhos.pb.utfpr.edu.br
    222.101 PTR barnei.pb.utfpr.edu.br

    150.11 PTR arquivos-coinf.pb.utfpr.edu.br
    150.12 PTR chamados-coinf.pb.utfpr.edu.br
    150.13 PTR portal-coinf.pb.utfpr.edu.br
    o erro na saída no nslookup tentando resolver um nome interno é o seguinte:
    server can't find arquivos-cogeti: NXDOMAIN
    no log em /var/los/syslog tem a seguinte informação:
    Aug 3 11:12:46 DNSInterno named[1329]: zone 29.172.in-addr.arpa/IN/intranet: NS 'DNSInterno.pb.utfpr.edu.br.29.172.in-addr.arpa' has no address records (A or AAAA)
    Aug 3 11:12:46 DNSInterno named[1329]: zone 29.172.in-addr.arpa/IN/intranet: not loaded due to errors.
    saída do dig:
    status: NSXDOMAIN
    Sei que é muita informação, mas já quebrei a cabeça aqui e nada resolve. Agradeço a ajuda desde já

  2. #2

    Padrão Re: Ajuda com DNS

    Galera.

    Resolvi, hehehe. Tópico encerrado.

  3. #3

    Padrão Re: Ajuda com DNS

    Alterei as linha:
    pb.utfpr.edu.br. IN NS DNSInterno.pb.utfpr.edu.br
    por:
    NS DNSInterno.pb.utfpr.edu.br.
    Estranho que na verdade está certo agora, mas funcionava no Debian 5

    Valeu