Erro no DNS - bind9

1. Erro no DNS - bind9

Pedro Humberto de Sousa Oliveira
pedro_humberto

(usa Debian)

Enviado em 06/03/2014 - 14:26h

Boa tarde, Pessoal.

Tenho um servidor Debian 7 - 64bits e estou com uma dificuldade para configurar o bind9.

O erro apresentado é o seguinte:

# named-checkconf -z:

zone bsb.net/IN: loaded serial 2014041589
/etc/bind/zones/named.10.80.50:16: ignoring out-of-zone data (1.50.80.10.in-addr.arpa)
zone 50.80.10.in-addr-arpa/IN: loaded serial 3833774384
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1

########################
cat /etc/bind/named.conf:

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/rndc.key";

########################

cat /etc/bind/named.default-zones

zone "." {
type hint;
file "/etc/bind/db.root";
};

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

########################

cat /etc/binb/named.conf.local

controls {
inet 127.0.0.1 port 53
allow {127.0.0.1;}
keys {"rndc-key";};
};

zone "bsb.net" {
type master;
file "/etc/bind/zones/db.bsb.net";
allow-update { 10.80.50.203; key "rndc.key";};
allow-query {any;};
notify yes;
};

zone "50.80.10.in-addr-arpa" IN {
type master;
file "/etc/bind/zones/named.10.80.50";
allow-update {10.80.50.203; key "rndc.key";};
allow-query {any;};
notify yes;
};

########################

cat /etc/bind/zones/db.bsb.net

$ORIGIN .
$TTL 42300 ; 12 horas
bsb.net IN SOA ns1.bsb.net. root.bsb.net. (
2014041589 ; serial
28800 ; refresh (8 horas)
14400 ; retry (4horas)
1209600 ; expire
86400 ; minimum
)

NS ns1.bsb.net.
A 10.80.50.203 ;

$ORIGIN bsb.net.

ns1 A 10.80.50.203 ;
www A 10.80.50.203 ;
www2 A 10.80.50.203 ;
www3 A 10.80.50.203 ;

########################

cat /etc/bind/zones/named.10.80.50

$TTL 604800 ;
@ IN SOA ns1.bsb.net. root.bsb.net. (

201402270000;
28800;
14400;
3600000;
86400;

)

@ IN NS ns1.bsb.net.

$ORIGIN 50.80.10.in-addr.arpa.

1 IN PTR ns1.bsb.net.

########################


Pessoal, não faço ideia do que seja.
se alguém puder me ajudar, fico muito agradecido.


  


2. Re: Erro no DNS - bind9

André Canhadas
andrecanhadas

(usa Debian)

Enviado em 06/03/2014 - 15:02h

Refaça o arquivo /etc/bind/zones/named.10.80.50

http://www.vivaolinux.com.br/dica/BIND-9-Configuracao-no-Debian-e-derivados


3. Re: Erro no DNS - bind9

Pedro Humberto de Sousa Oliveira
pedro_humberto

(usa Debian)

Enviado em 06/03/2014 - 16:02h

andrecanhadas escreveu:

Refaça o arquivo /etc/bind/zones/named.10.80.50

http://www.vivaolinux.com.br/dica/BIND-9-Configuracao-no-Debian-e-derivados



Refiz o arquivo de acordo e o resultado foi esse:

/etc/bind/zones/named.10.80.50
$TTL 604800 ;
@ IN SOA ns1.bsb.net. root.ns1.bsb.net. (

201402270000;
28800;
14400;
3600000;
86400);
;

@ IN NS ns1.bsb.net.
10 IN PTR ns1.bsb.net
#######################


reiniciei o bind9 e o erro mudou.

/etc/bind/zones/db.bsb.net:11: ignoring out-of-zone data (.)
zone bsb.net/IN: has no NS records
zone bsb.net/IN: not loaded due to errors.
_default/bsb.net/IN: bad zone
/etc/bind/zones/named.10.80.50:11: unknown RR type '50.80.10.in-addr.arpa.'
zone 50.80.10.in-addr-arpa/IN: loading from master file /etc/bind/zones/named.10.80.50 failed: unknown class/type
zone 50.80.10.in-addr-arpa/IN: not loaded due to errors.
_default/50.80.10.in-addr-arpa/IN: unknown class/type
zone localhost/IN: loaded serial 2
zone 127.in-addr.arpa/IN: loaded serial 1
zone 0.in-addr.arpa/IN: loaded serial 1
zone 255.in-addr.arpa/IN: loaded serial 1








Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts