Eu configurei um servidor BIND na minha caixa dedicada, na qual quero hospedar um servidor de nomes para o meu domínio.
Quando eu uso dig @202.169.196.59 nzserver.co.nz
localmente no servidor, recebo a seguinte resposta ...
; <<>> DiG 9.8.1-P1 <<>> @202.169.196.59 nzserver.co.nz
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 43773
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;nzserver.co.nz. IN A
;; ANSWER SECTION:
nzserver.co.nz. 3600 IN A 202.169.196.59
;; AUTHORITY SECTION:
nzserver.co.nz. 3600 IN NS ns2.nzserver.co.nz.
nzserver.co.nz. 3600 IN NS ns1.nzserver.co.nz.
;; ADDITIONAL SECTION:
ns1.nzserver.co.nz. 3600 IN A 202.169.196.59
ns2.nzserver.co.nz. 3600 IN A 202.169.196.59
;; Query time: 0 msec
;; SERVER: 202.169.196.59#53(202.169.196.59)
;; WHEN: Sat Oct 27 15:40:45 2012
;; MSG SIZE rcvd: 116
O que é bom e é a saída que desejo. Mas quando simplesmente usando dig nzserver.co.nz
eu recebo ...
; <<>> DiG 9.8.1-P1 <<>> nzserver.co.nz
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 16970
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;nzserver.co.nz. IN A
;; Query time: 308 msec
;; SERVER: 202.169.192.61#53(202.169.192.61)
;; WHEN: Sat Oct 27 17:09:12 2012
;; MSG SIZE rcvd: 32
E se eu usar dig @202.169.196.59 nzserver.co.nz
em outra máquina linux eu recebo ...
; <<>> DiG 9.7.3 <<>> @202.169.196.59 nzserver.co.nz
; (1 server found)
;; global options: +cmd
;; connection timed out; no servers could be reached
Estou fazendo algo errado aqui? A porta 53 está definitivamente aberta.
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
forwarders {
202.169.192.61;
202.169.206.10;
};
listen-on {
202.169.196.59;
};
};
/etc/bind/named.conf.local
zone "nzserver.co.nz" {
type master;
file "/etc/bind/nzserver.co.nz.zone";
};
/etc/bind/nzserver.co.nz.zone
; BIND db file for nzserver.co.nz
$ORIGIN nzserver.co.nz.
@ IN SOA ns1.nzserver.co.nz. mr.steven.french.gmail.com. (
2012102606
28800
7200
864000
3600 )
NS ns1.nzserver.co.nz.
NS ns2.nzserver.co.nz.
MX 10 mail.nzserver.co.nz.
@ IN A 202.169.196.59
* IN A 202.169.196.59
ns1 IN A 202.169.196.59
ns2 IN A 202.169.196.59
www IN A 202.169.196.59
mail IN A 202.169.196.59
netstat -tupanl | grep ": 53"
tcp 0 0 202.169.196.59:53 0.0.0.0:* LISTEN 8250/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 8250/named
udp 0 0 202.169.196.59:53 0.0.0.0:* 8250/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 8250/named