+ Responder ao Tópico



  1. #1

    Padrão Erro no DNS - NSLOOKUP indica local errado.

    Boa Tarde,

    Estou configurando meu primeiro Bind, o serviço está rodando muito bem obrigado! Porém está apresentando erros. Tenho certeza que estou errando em coisas básicas e conceituais, porém ainda não achei onde.

    A resposta do meu NSLOOKUP ve da seguinte maneira :

    infranet:/# nslookup infranet.com.br
    Server: 10.0.0.254
    Address: 10.0.0.254#53

    Non-authoritative answer:
    Name: infranet.com.br
    Address: 74.53.43.162

    infranet:/# nslookup infranet.com.br
    Server: 10.0.0.254
    Address: 10.0.0.254#53

    Non-authoritative answer:
    Name: infranet.com.br
    Address: 74.53.43.162
    Ou quando pesquiso pelo ip da placa de rede da LAN:

    infranet:/# nslookup 192.168.1.1
    Server: 10.0.0.254
    Address: 10.0.0.254#53

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


    Seguinte, essa máquina tem duas placas de rede, é nela que chega minha internet, porém quero que meu DNS seja apenas um sistema interno, as requisições externas, serão encaminhadas para os DNS da operadora. Porém, aparentemente ele encaminha tudo para este IP 74.53.43.162, em qual arquivo de configuração eu altero isso?

    Se precisarem olhar arquivos de configuração, só pedir que eu posto aqui. não coloquei de cara pro tópico não ficar muito grande e cansativo de ler.

  2. #2

    Padrão Meus arquivos de configuração.

    infranet:/etc/bind# cat 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

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

    key infranet {
    algorithm hmac-md5;
    secret "tYeYx9ALbYeeLMdGjsYoRg==";
    };

    controls {
    inet 127.0.0.1 port 953
    allow { 127.0.0.1; 192.168.1.1; } keys { "infranet"; };
    };

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

    zone "ceatis.com.br" {
    type master;
    file "/var/cache/bind/infranet.com.br.zone";
    };

    zone 1.168.192.in-addr.arpa. {
    type master;
    file "/var/cache/bind/1.168.192.arpa";
    };

    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";
    };

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

    infranet:/etc/bind# cat named.conf.local
    //
    // Do any local configuration here
    //

    // Consider adding the 1918 zones here, if they are not used in your
    // organization
    //include "/etc/bind/zones.rfc1918";

    zone "ceatis.com.br" {
    type master;
    file "/etc/bind/arquivos/infranet.com.br.zone";
    allow-update { key "intranet"; };
    notify no;
    };

    zone 1.168.192.in-addr.arpa {
    type master;
    file "/etc/bind/arquivos/1.168.192.arpa";
    allow-update { key "intranet"; };
    notify none;
    };

    infranet:/var/cache/bind# cat infranet.com.br.zone
    $TTL 604800 ; --> valor respectivo a 1 semana
    @ IN SOA ns.ceatis.com.br. root.ceatis.com.br. (
    22092009 ; Serial
    604800 ; Refresh (1 semana)
    86400 ; Retry ( 1 dia )
    2419200 ; Expira ( 4 semanas )
    604800) ; Minimo ( 1 semana )
    ;
    @ IN NS ns.ceatis.com.br.

    infranet:/var/cache/bind# cat 1.168.192.arpa
    $TTL 604800;
    @ IN SOA ns.ceatis.com.br. root.ceatis.com.br. (
    22092009 ; Serial
    604800 ; Refresh (1 semana)
    86400 ; Retry ( 1 dia )
    2419200 ; Expira ( 4 semanas )
    604800) ; Minimo ( 1 semana )
    ;
    @ IN NS ns.ceatis.com.br.

    infranet:/var/cache/bind# cat /etc/resolv.conf
    search infranet
    nameserver 192.168.1.1
    nameserver 10.0.0.254

    Help!!!