使用 BIND,我需要确定为什么我新创建的区域文件未能通过命名检查区域检查。这里依次是 named.conf 文件、区域文件和错误。试过改ip不知道是什么问题
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
print-severity yes;
};
};
zone "example.vm." {
type master;
file "db.example";
allow-update { none; };
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
[root@office1 named]# cat db.example
$TTL 3H
$ORIGIN example.vm.
example.vm. IN SOA office1.example.vm. root.example.vm. (
1 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
example.vm NS office1.example.vm.
office1 A 10.73.111.72
[root@office1 named]# named-checkzone example.vm db.example
zone example.vm/IN: has no NS records
zone example.vm/IN: not loaded due to errors.