Salve galera estou a alguns dias tentando colocar meu servidor bind, que esta instalado no Debian, para funcionar para servir minha rede,e futuramente o site que vou criar, mas de todos manuais que li e que consultei na internet e fóruns, faço igual crio as zonas e seus respectivos arquivos mas quando vamos consultar algo com o "dig" ele da erro
[email protected]:/etc/bind# dig reclamatoledo.com.br
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> reclamatoledo.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14817
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;reclamatoledo.com.br. IN A
;; AUTHORITY SECTION:
reclamatoledo.com.br. 899 IN SOA a.sec.dns.br. hostmaster.registro.br. 2014106000 86400 900 604800 900
;; Query time: 269 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Apr 23 11:15:19 2014
;; MSG SIZE rcvd: 104
assim como o dns do google agora quando coloco o proprio do servidor ele me da esse erro
[email protected]:/etc/bind# dig reclamatoledo.com.br
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> reclamatoledo.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 46865
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;reclamatoledo.com.br. IN A
;; Query time: 1 msec
;; SERVER: 200.195.xxx.xxx#53(200.195.xxx.xxx)
;; WHEN: Wed Apr 23 11:16:57 2014
;; MSG SIZE rcvd: 38
ServFail, o que pode ter de errado nesta configuração?
segue a minha configurações
/etc/hosts
127.0.0.1 localhost
200.195.xxx.xxx ns2.reclamatoledo.com.br ns2
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/etc/resolv.conf
# Generated by NetworkManager
nameserver 200.195.xxx.xxx
/etc/bind/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";
/etc/bind/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 "reclamatoledo.com.br" {
allow-query { any; };
type master;
file "etc/bind/db.reclamatoledo";
};
zone "178.195.200.in-addr.arpa" {
type master;
file "/etc/bind/db.xxx.195.200";
};
/etc/bind/db.reclamatoledo
; BIND reverse data file for empty rfc1918 zone
;
; DO NOT EDIT THIS FILE - it is used for multiple zones.
; Instead, copy it, edit named.conf, and use that copy.
;
$TTL 86400
@ IN SOA reclamatoledo.com.br. root.reclamatoledo.com.br. (
2014041908 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS localhost.
www IN A 200.195.xxx.xxx
ftp IN A 200.195.xxx.xxx
ns2 IN A 200.195.xxx.xxx
/etc/bind/db.xxx.195.200
$TTL 86400
@ IN SOA reclamatoledo.com.br. root.reclamatoledo.com.br. (
2014041908 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS ns2.reclamatoledo.com.br.
10 IN PTR ns2.reclamatoledo.com.br.
bem estas são as minhas configurações, se algum amigo que ja tenha feito estas mesmas em seu servidor achar algo de errado, ficarei grato pois ta dificil, abraço galera e no aguardo