named-checkzone错误

当我运行named-checkzone example.com /var/named/example.com.zone时,我一直收到这个错误

 zone example.com/IN: NS 'ns.example.com' has no address records (A or AAAA) zone example.com/IN: not loaded due to errors. 

的/etc/named.conf

 options { directory "/var/named"; }; zone "example.com" in { type master; file "/var/named/example.com.zone"; }; 

/var/named/example.com.zone

 $TTL 1d example.com. IN SOA ns.example.com. root.example.com. ( 1 ; Serial 3600 ; Refresh 900 ; Update retry 2d ; Expire 3600 ; TTL ) @ IN NS ns.example.com. example.com. IN A 192.168.1.102 example.com. IN NS ns.example.com. 

这里发生了什么,我不知道为什么我不断收到这个错误。

您正在将此区域的NS设置为ns.example.com。
但是你没有为ns.example.com创build一个Alogging。

添加(当然相应调整IP):
ns.example.com. IN A 192.168.1.102