Você criou a zona '0.142.10.in-addr.arpa', então você precisa verificar essa:
named-checkzone 0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
Eu tenho um DNS PTR reverso de endereço único simples para 10.142.0.2
to gbox.example.com
configuração de registro assim:
# cat /var/named/zones/0.142.10.in-addr.arpa.db
$ORIGIN .
$TTL 1D
0.142.10.in-addr.arpa. IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)
NS gbox.example.com.
$ORIGIN 0.142.10.in-addr.arpa.
2 PTR gbox.example.com.
e quando eu corro:
# named-checkzone 2.0.142.10.in-addr.arpa /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
zone 2.0.142.10.in-addr.arpa/IN: has 0 SOA records
zone 2.0.142.10.in-addr.arpa/IN: has no NS records
zone 2.0.142.10.in-addr.arpa/IN: not loaded due to errors.
# named-checkzone 10.142.0.2 /var/named/zones/0.142.10.in-addr.arpa.db
/var/named/zones/0.142.10.in-addr.arpa.db:5: ignoring out-of-zone data (0.142.10.in-addr.arpa)
/var/named/zones/0.142.10.in-addr.arpa.db:16: ignoring out-of-zone data (2.0.142.10.in-addr.arpa)
zone 10.142.0.2/IN: has 0 SOA records
zone 10.142.0.2/IN: has no NS records
zone 10.142.0.2/IN: not loaded due to errors.
E pela minha vida eu não consigo descobrir o que está acontecendo aqui.
$ cat /etc/centos-release
CentOS Linux release 7.5.1804 (Core)
$bind -v
BIND 9.9.4-RedHat-9.9.4-61.el7_5.1 (Extended Support Version)
EDIT: Eu tentei uma versão de sintaxe alternativa do arquivo de zona sem nenhuma alteração:
# cat /var/named/zones/0.142.10.in-addr.arpa.db
$ORIGIN 0.142.10.in-addr.arpa.
$TTL 1D
@ IN SOA gbox.example.com. dnsadmin.example.com. (
2018111401 ;
12h ;
5m ;
1w ;
3h ;
)
NS gbox.example.com.
2 PTR gbox.example.com.
EDIT 2: Integrado em named.conf
:
zone "0.142.10.in-addr.arpa" {
type master;
allow-transfer { none; };
notify no;
file "/var/named/zones/0.142.10.in-addr.arpa.db";
};
e ainda recebo o mesmo erro com named-checkzone