Eu tenho 2 servidores DNS no meu ambiente de testes:
- Centos 7 x64 VM - executando o BIND 9.9.4-RedHat-9.9.4-50.el7_3.1 DNS PRIMÁRIO
- Raspbian GNU / Linux 8 Jessie - executando o BIND 9.9.5-9 + deb8u12-Raspbian -
DNS SECUNDÁRIO
Minha configuração funciona normalmente para arquivos de zona, MAS não funciona para arquivos de zona reversa. O registro de DNS do Secondary relata o seguinte:
Jul 11 09:04:44 dns2-ph-village-rc1 named[3831]: zone 0.244.224.10/IN: refresh: non-authoritative answer from master 10.224.244.129#53 (source 0.0.0.0#0)
A configuração do arquivo da zona inversa é:
$ORIGIN 224.10.in-addr.arpa.
$TTL 86400
@ IN SOA dns1-vr1.network.ddns.net. root.network.ddns.net. (
2017071001 ;Serial
3600 ;Refresh
1800 ;Retry
604800 ;Expire
86400 ;Minimum TTL for NX Domain (non existent)
)
@ IN NS dns1-vr.network.ddns.net.
@ IN NS dns2-ph-village-rc1.network.ddns.net.
129.244 IN PTR dns1-vr.network.ddns.net.
4.246 IN PTR dns2-ph-village-rc1.network.ddns.net.
3.246 IN PTR gateway2-ph-village-rc1.network.ddns.net.
A configuração do named.conf no PRIMARY é:
; omitting acl declarations
options {
listen-on-v6 { none; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { mynet; };
allow-transfer { inner; };
recursion yes;
notify yes;
dnssec-enable no;
dnssec-validation no;
dnssec-lookaside auto;
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
pid-file "/run/named/named.pid";
session-keyfile "/run/named/session.key";
};
; omitting log declarations
view "inside" {
match-clients {
mynet;
};
zone "." IN {
type hint;
file "named.ca";
};
zone "network.ddns.net" IN {
type master;
file "network.ddns.net.lan";
allow-update { none; };
};
zone "224.10.in-addr.arpa" IN {
type master;
file "0.244.224.10.db";
allow-update { none; };
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
};
named.conf no DNS SECUNDÁRIO é:
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
include "/etc/bind/named.conf.external-zones";
named.conf.external-zones no SECONDARY é:
zone "network.ddns.net" IN {
type slave;
masters { 10.224.244.129; };
file "/etc/bind/slaves/network.ddns.net.lan";
notify no;
};
zone "0.244.224.10" IN {
type slave;
masters { 10.224.244.129; };
file "/etc/bind/slaves/0.244.224.10.db";
notify no;
};
network.ddns.net.lan é criado em / etc / bind / slaves /
0.224.244.10 é NÃO criado em / etc / bind / slaves /