+ Responder ao Tópico



  1. #1

    Padrão DNS Interno

    Olá a todos!!

    Estou tentando configurar um servidor DNS para a rede interna do laboratório que eu trabalho.
    Isto porque o DNS da Universidade tem a mania de cair (queda de energia no final de semana é certo) e com isso fica praticamente impossível navegar na net. :-)
    Dei uma olhadinha na net e em alguns how-tos aqui no under.

    Uma dúvida: Se o DNS da Universidade cair, o DNS interno poderá resolver nomes de fora da rede interna?

    Estou tendo problema no reveso, acredito eu.
    Quando dou o comando, nslookup e digito o ip ele não resolve e não consigo achar a fonte do erro:

    Desculpem-me por não usar a função code, pois quando fiz isso apareceram várias barras de rolagens. :|

    [root@pegasus named]# nslookup
    > 192.168.0.56
    Server: 192.168.0.56
    Address: 192.168.0.56#53

    ** server can't find 56.0.168.192.in-addr.arpa: NXDOMAIN
    >

    Estou usando FC 4 e estão são as minhas configurações do DNS:

    arquivo named.conf

    # cat named.conf
    //
    // named.conf for Red Hat caching-nameserver
    //

    options {
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    /*
    * 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;
    };

    //
    // a caching only nameserver config
    //
    controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
    };

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

    zone "localdomain" IN {
    type master;
    file "localdomain.zone";
    allow-update { none; };
    };

    zone "localhost" IN {
    type master;
    file "localhost.zone";
    allow-update { none; };
    };

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

    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.arpa" IN {
    type master;
    file "named.ip6.local";
    allow-update { none; };
    };

    zone "255.in-addr.arpa" IN {
    type master;
    file "named.broadcast";
    allow-update { none; };
    };

    zone "0.in-addr.arpa" IN {
    type master;
    file "named.zero";
    allow-update { none; };
    };

    include "/etc/rndc.key";

    zone "labbi.uesc.br" IN {
    type master;
    file "labbi.uesc.br";
    };

    zone "0.168.192.in-addr.arpa" IN {
    type master;
    file "labbi.uesc.br.rev";
    };

    arquivo labbi.uesc.br

    # /var/named/cat labbi.uesc.br
    ; Arquivo "labbi.uesc.br"

    ; configuracao do arquivo labbi.uesc.br, altere conforme as suas

    ;necessidades.

    ; as linhas comecadas com ; nao serao lidas...

    ; nao use a opcao $TTL se estiver usando um bind mais antigo

    ; que o 8.2

    $TTL 3H

    @ IN SOA labbi.uesc.br. root.pegasus.labbi.uesc.br. (

    1 ; serial

    3h ; refresh

    15 ; retry

    1w ; expire

    12h ; default_ttl

    )

    ;Servidor de nome

    @ IN NS pegasus.labbi.uesc.br.

    ;Enderecos

    pegasus.labbi.uesc.br. IN A 192.168.0.56

    selkie.labbi.uesc.br. IN A 192.168.0.50

    ; open.intra.opensolutions. IN A 10.0.0.3

    ; win.intra.opensolutions. IN A 10.0.0.4

    ;fim do arquivo


    arquivo labbi.uesc.br.rev

    [root@pegasus named]# cat /var/named/labbi.uesc.br.rev
    $TTL 86400

    $ORIGIN 0.168.192.in-addr.arpa.

    @ IN SOA pegasus.labbi.uesc.br. root.labbi.uesc.br. (
    997022700 ; Serial
    8800 ; Refresh
    4400 ; Retry
    600000 ; Expire
    6400) ; Minimum

    @ IN NS pegasus.labbi.uesc.br.

    1 IN PTR pegasus.labbi.uesc.br.
    2 IN PTR selkie.labbi.uesc.br.


    Falou, galera !!!!

  2. #2

    Padrão Re: DNS Interno

    alguém :? ?

  3. #3

    Padrão Re: DNS Interno

    olá ...

    Primeira mente .... Você está configurando os arquivos do chroo ( /var/named/chroot/etc/named.conf e o /var/named/chroot/var/named/seus_arquivos
    pois tive um problema desse uma vez ...pois estava configurando direto pelo /etc/named.conf

    segundo ...

    presta atenção nessa parte ...

    @ IN SOA labbi.uesc.br. root.pegasus.labbi.uesc.br. (

    1 ; serial

    3h ; refresh

    15 ; retry

    1w ; expire

    12h ; default_ttl

    )

    ;Servidor de nome

    @ IN NS pegasus.labbi.uesc.br.

    ;Enderecos

    pegasus.labbi.uesc.br. IN A 192.168.0.56

    selkie.labbi.uesc.br. IN A 192.168.0.50
    com essa ...

    @ IN SOA pegasus.labbi.uesc.br. root.labbi.uesc.br. (
    997022700 ; Serial
    8800 ; Refresh
    4400 ; Retry
    600000 ; Expire
    6400) ; Minimum

    @ IN NS pegasus.labbi.uesc.br.

    1 IN PTR pegasus.labbi.uesc.br.
    2 IN PTR selkie.labbi.uesc.br.
    voce diz que ...
    pegasus.labbi.uesc.br. IN A 192.168.0.56
    selkie.labbi.uesc.br. IN A 192.168.0.50

    tem o ip 192.168.0.56 e 50

    e no seu reverso tem o final 1 e 2 ...
    onde seria 56 e 20 ...

    Resposta: DNS é DNS ... ou seja interno ( IP Privado ) ou Externo ( IP Roteavel na Internet )

    eles traduzem nomes em Ip ...

    se voce configurar certinho .. e consegui por ex:

    pingar ser hotname+domnio ele con certeza irá resolver os hosts externos ...

    lembrando que esse DNS tem que ter acesso a Internet ...

    se deu pra ajudar ...blz ... se não deu ... posta ai ...

    valew.

  4. #4

    Padrão Re: DNS Interno

    Ba amigo to vendo um monte de coisa q nao confere mas faz assim, digita ai nslookup -sil dominio.com.br


    Abraçao