Então eu sou meio novato e estou seguindo isso para conectar um domínio ao meu servidor. aqui estão meus códigos:
named.conf.options:
acl "trusted" {
124.243.241.164;
124.243.241.164;
124.243.241.164;
124.243.241.164;
};
options {
directory "/var/cache/bind";
recursion yes;
allow-recursion { trusted; };
listen-on { 124.243.241.164; };
allow-transfer { none; };
forwarders {
8.8.8.8;
8.8.4.4;
};
dnssec-validation auto;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
named.conf.local:
zone "ns1.raze.one" {
type master;
file "/etc/bind/zones/db.ns1.raze.one";
allow-transfer { 124.243.241.164; };
};
zone "243.124.in-addr.arpa" {
type master;
file "/etc/bind/zones/db.124.243";
allow-transfer { 124.243.241.164; };
};
db.124.243:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.raze.one. root.ns1.raze.one. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers - NS records
IN NS ns1.ns1.raze.one.
IN NS ns2.ns2.raze.one.
; PTR Records
164.241 IN PTR ns1.ns1.raze.one. ; 124.243.241.164
164.241 IN PTR ns2.ns2.raze.one. ; 124.243.241.164
164.241 IN PTR rdn.mercury.orderbox-dns.com. ; 124.243.241.164
164.241 IN PTR rdn.venus.orderbox-dns.com. ; 124.243.241.164
db.ns1.raze.one:
;
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.raze.one. root.ns1.raze.one. (
5 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
; name servers - NS records
IN NS ns1.ns1.raze.one.
IN NS ns2.ns1.raze.one.
; name servers - A records
ns1.ns1.raze.one. IN A 124.243.241.164
ns2.ns2.raze.one. IN A 124.243.241.164
; 124.243.241.164 - A records
rdn.mercury.orderbox-dns.com. IN A 124.243.241.164
rdn.venus.orderbox-dns.com. IN A 124.243.241.164
Agora, o problema é quando eu digito sudo named-checkzone ns1.raze.one db.ns1.raze.one
, recebo este erro:
zone ns1.raze.one/IN: loading from master file db.ns1.raze.one failed: file not found
zone ns1.raze.one/IN: not loaded due to errors.
embora este arquivo exista!
e quando eu faço sudo named-checkzone 124.243.in-addr.arpa /etc/bind/zones/db.124.243
está funcionando:
zone 124.243.in-addr.arpa/IN: loaded serial 3
OK
Estou preso a isso por enquanto gostaria de receber uma pequena ajuda aqui.