I have these 3 files to configure a zone :
/etc/named.conf
zone "exemple.tn" IN {
type master;
file "/var/named/db.exemple.tn";
allow-update {none;};
};
zone "85.168.192.in-addr.arpa" {
type master ;
file "/var/named/db.cba.tn" ;
allow-update {none;};
} ;
/etc/var/db.exemple.tn
$ORIGIN exemple.tn.
$TTL 84600
@ IN SOA ns.exemple.tn. root@exemple.tn. (
123312 ; serial
1h ;refresh
2h ;retry
1w ;expire
1h) ;min cache
@ IN NS ns.exemple.tn.
@ IN A 192.168.25.128
ns IN A 192.168.85.129
/var/named/db.cba.tn
$TTL 86400
@ IN SOA ns.exemple.tn. root.ns.exemple.tn. (
4
10800
3600
604800
86400 )
@ IN NS ns.exmple.tn.
129 IN PTR ns.exemple.tn.
and when i run the command :
# named-checkzone exemple.tn /var/named/db.cba.tn
i get this error : zone exemple.tn/IN: NS 'ns.exmple.tn' has no adress records (A or AAAA)
Thanks in advance.