BIND9 [RESOLVIDO]

1. BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/03/2013 - 00:08h

pessoal estou meu server esta dando probleme na hora de nslookp 192.168.1.1 da erro
qual será? segui os conf


elias.net:

;
; BIND data file for local loopback interface
;
$TTL 604800
$ORIGIN elias.net.
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor
@ IN MX smtp.elias.net
igor IN A 192.168.1.1

ftp IN CNAME igor.elias.net.
www IN CNAME igor.elias.net.
pop IN CNAME igor.elias.net.
ssh IN CNAME igor.elias.net.
proxy IN CNAME igor.elias.net.


igor.elias.net.rev

;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net
1.1.168 IN PTR igor.elias.net.


named.conf.default-zones

// 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 "elias.net"{
type master;
file "/etc/bind/elias.net";
};



  


2. Re: BIND9 [RESOLVIDO]

João Paulo Carneiro
jptudobem

(usa Debian)

Enviado em 25/03/2013 - 08:47h

[EDIT]Duplicated


3. Re: BIND9 [RESOLVIDO]

João Paulo Carneiro
jptudobem

(usa Debian)

Enviado em 25/03/2013 - 08:49h

Sua zona reversa não está configurada no named.conf. Faça:


zone "elias.net" IN {
type master;
file "/etc/bind/elias.net";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};


Além disso, a zona direta e a reversa tem erros nas configurações.


$TTL 604800
$ORIGIN elias.net.
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

igor IN A 192.168.1.1
smtp IN A 192.168.1.1

ftp IN CNAME igor.elias.net.
www IN CNAME igor.elias.net.
pop IN CNAME igor.elias.net.
ssh IN CNAME igor.elias.net.
proxy IN CNAME igor.elias.net.




$TTL 604800
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

1 IN PTR igor.elias.net.
1 IN PTR smtp.elias.net.


Estou me baseando que você está usando mask 255.255.255.0.
Não esqueça de alterar seu resolv.conf


search elias.net
nameserver 192.168.1.1




4. Re: BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 28/03/2013 - 02:55h

pra testar é nslokup 192.168.1.1 correto?
mesmo ajustando essas conf procede com SERVFAIL:

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


5. Re: BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 28/03/2013 - 03:00h

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";
//include "/etc/bind/named.conf.local";
//include "/etc/bind/named.conf.default-zones";


zone "elias.net" IN {
type master;
file "/etc/bind/elias.net";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};


elias.net


$TTL 604800
$ORIGIN elias.net.
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

igor IN A 192.168.1.1
smtp IN A 192.168.1.1

ftp IN CNAME igor.elias.net.
www IN CNAME igor.elias.net.
pop IN CNAME igor.elias.net.
ssh IN CNAME igor.elias.net.
proxy IN CNAME igor.elias.net.


igor.elias.rev

$TTL 604800
@ IN SOA igor.elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

1 IN PTR igor.elias.net.
1 IN PTR smtp.elias.net.







6. Re: BIND9 [RESOLVIDO]

João Paulo Carneiro
jptudobem

(usa Debian)

Enviado em 28/03/2013 - 08:20h

O nome do arquivo da zona reversa está errado no named.conf.

Altere para "igor.elias.rev" se é este mesmo o nome do arquivo que você criou.


7. Re: BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 28/03/2013 - 17:07h

pior que o nome está correto!
é igor.elias.net.rev mesmo
;S ;S


8. Re: BIND9 [RESOLVIDO]

João Paulo Carneiro
jptudobem

(usa Debian)

Enviado em 28/03/2013 - 17:17h

Tenta a resolução direta: nslookup igor.elias.net


9. Re: BIND9 [RESOLVIDO]

João Paulo Carneiro
jptudobem

(usa Debian)

Enviado em 28/03/2013 - 17:26h

Confere essa config referente a reversa no named.conf:


zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};



Veja que o nome da zone é "1.168.192.in-addr.arpa" e não "1.1.168.192.in-addr.arpa" como acusou a msg de erro. São apenas 3 octetos, se sua mask for 255.255.255.0.

Novamente confira o nome dos arquivos das zonas, veja se é realmente o nome que vc criou.

Vc alterou seu /etc/resolv.conf?


search elias.net
nameserver 192.168.1.1


OBS: NOS ARQUIVOS DE ZONA (DIRETA E REVERSA), ALTERE O REGISTRO SOA!
De igor.elias.net. > elias.net.


@ IN SOA elias.net. root.elias.net.
...
...
...



10. Re: BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 28/03/2013 - 19:08h

infelismente o erro persiste ;S
e sim, minha mascara é 255.255.255.0, rede interna.

arquivos com alterações:

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";
//include "/etc/bind/named.conf.local";
//include "/etc/bind/named.conf.default-zones";


zone "elias.net" IN {
type master;
file "/etc/bind/elias.net";
};

zone "1.1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};


elias.net

$TTL 604800
$ORIGIN elias.net.
@ IN SOA elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

igor IN A 192.168.1.1
smtp IN A 192.168.1.1

ftp IN CNAME igor.elias.net.
www IN CNAME igor.elias.net.
pop IN CNAME igor.elias.net.
ssh IN CNAME igor.elias.net.
proxy IN CNAME igor.elias.net.


igor.elias.net.rev

$TTL 604800
@ IN SOA elias.net. root.elias.net. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS igor.elias.net.
@ IN MX smtp.elias.net.

1 IN PTR igor.elias.net.
1 IN PTR smtp.elias.net.



zone "1.1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};

ou

zone "1.168.192.in-addr.arpa" IN {
type master;
file "/etc/bind/igor.elias.net.rev";
};

qual o correto. OBS.: fiz o teste com os dois e o anbos apresentaram erro.
;S

e o nome dos arquivos de conf são esses mesmos


11. Re: BIND9 [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 30/03/2013 - 22:11h

resolvido...
viva os logs!
faltava um numero no registro mx e acertar a zona reversa!
vlw!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts