Zona reversa não funciona com BIND9

1

Estou tentando configurar um servidor DNS no UBUNTU 12.04 com o serviço BIND9. Consigo configurar com êxito o mesmo e quando estou executando o comando nslookup ele funciona bem. No entanto, o comando do host parece não estar trabalhando que irá executar a zona de endereço reverso.

ERRO DE COMANDO HOST:

root@necacdnsone:/etc/bind/zones# host 10.222.190.54 Host 54.190.222.10.in-addr.arpa. not found: 3(NXDOMAIN)

Saída do comando NSLOOKUP bem-sucedida:

nslookup necone.com
Server:         10.222.190.54
Address:        10.222.190.54#53

Name:   necone.com
Address: 10.222.190.54

Os arquivos de configuração estão tendo entradas como mencionado abaixo. Por favor, me guie para corrigir o problema da zona de endereço reverso. (comando do host)

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 "necone.com" {
 type master;
 file "/etc/bind/zones/db.necone.com";
};
zone "190.222.10.in-addr.arpa" {
  type master;
  file "/etc/bind/zones/db.10";
};

arquivo db.10

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     necacdnsone.necone.com. root.necone.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
        IN  NS  necacdnsone.
   1    IN  PTR gateway.necone.com.
   54   IN  PTR necacdnsone.necone.com.
   52   IN  PTR dhcpserver.necone.com.

db.necone.com

;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     necacdnsone.necone.com. root.necone.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
necone.com.      IN  NS  necacdnsone.necone.com.
necone.com.      IN  A   10.222.190.54
   ;@               IN  A   127.0.0.1
   ;@               IN  AAAA    ::1
necacdnsone       IN  A   10.222.190.54
gateway           IN  A   10.222.190.1
dhcpserver        IN  A   10.222.190.52
www       IN  CNAME   necone.com.

Acho que em algum lugar no arquivo named.conf.local cometi um erro.

SYSLOGS

tail -f /var/log/syslog
Apr  7 19:38:50 necacdnsone named[4507]: error (network unreachable) resolving '62.191.222.10.in-addr.arpa/PTR/IN': 2001:dc3::35#53
Apr  7 19:38:50 necacdnsone named[4507]: error (network unreachable) resolving '62.191.222.10.in-addr.arpa/PTR/IN': 2001:7fd::1#53
Apr  7 20:08:32 necacdnsone named[4507]: error (connection refused) resolving './DNSKEY/IN': 10.222.190.1#53
Apr  7 20:08:35 necacdnsone named[4507]: error (network unreachable) resolving './DNSKEY/IN': 2001:7fe::53#53
Apr  7 20:08:42 necacdnsone named[4507]: error (network unreachable) resolving './DNSKEY/IN': 2001:500:3::42#53
Apr  7 20:08:42 necacdnsone named[4507]: error (network unreachable) resolving './DNSKEY/IN': 2001:503:ba3e::2:30#53
Apr  7 20:08:42 necacdnsone named[4507]: error (network unreachable) resolving './DNSKEY/IN': 2001:500:2f::f#53
Apr  7 20:08:42 necacdnsone named[4507]: error (network unreachable) resolving './DNSKEY/IN': 2001:500:1::803f:235#53
Apr  7 20:08:42 necacdnsone named[4507]: managed-keys-zone ./IN: Unable to fetch DNSKEY set '.': timed out
    
por Renold 07.04.2015 / 08:39

1 resposta

4

A causa imediata do erro é o espaço em branco inicial em seu arquivo db.10 . Correto:

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     necacdnsone.necone.com. root.necone.com. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
        IN  NS  necacdnsone.
1    IN  PTR gateway.necone.com.
54   IN  PTR necacdnsone.necone.com.
52   IN  PTR dhcpserver.necone.com.

Incorreto:

;
        IN  NS  necacdnsone.
   1    IN  PTR gateway.necone.com.
   54   IN  PTR necacdnsone.necone.com.
   52   IN  PTR dhcpserver.necone.com.
^^^ spaces are the problem

Lembre-se de aumentar SOA Serial e recarregar o nome.

Em um assunto não relacionado, você deve especificar IN NS necacdnsone.necone.com. ao contrário do que seu guia mal escolhido sugere.

    
por 07.04.2015 / 13:13