当前位置: 技术问答>linux和unix
bind的zone文件
来源: 互联网 发布时间:2016-06-08
本文导语: 这是我的配置文件 $TTL 86400 @ IN SOA ns.example.com. root.example.com.( 2009051400; 10800; ...
这是我的配置文件
$TTL 86400
@ IN SOA ns.example.com. root.example.com.(
2009051400;
10800;
3600;
604800;
0;
);
example.com. IN NS ns.example.com.
ns.example.com. IN A 192.168.1.160
下面是提示错误,请高手指出哪里出错了,怎么会提示没有NS记录呢?
[root@ns /var/named]# named-checkzone example.com.zone /var/named/example.com.zone
/var/named/example.com.zone:9: ignoring out-of-zone data (example.com)
/var/named/example.com.zone:10: ignoring out-of-zone data (ns.example.com)
zone example.com.zone/IN: has no NS records
$TTL 86400
@ IN SOA ns.example.com. root.example.com.(
2009051400;
10800;
3600;
604800;
0;
);
example.com. IN NS ns.example.com.
ns.example.com. IN A 192.168.1.160
下面是提示错误,请高手指出哪里出错了,怎么会提示没有NS记录呢?
[root@ns /var/named]# named-checkzone example.com.zone /var/named/example.com.zone
/var/named/example.com.zone:9: ignoring out-of-zone data (example.com)
/var/named/example.com.zone:10: ignoring out-of-zone data (ns.example.com)
zone example.com.zone/IN: has no NS records
|
$TTL 86400
@ IN SOA ns.example.com. root.example.com.(
2009051400;
10800;
3600;
604800;
0;
);
IN NS ns.example.com.
ns IN A 192.168.1.160
就可以了
@ IN SOA ns.example.com. root.example.com.(
2009051400;
10800;
3600;
604800;
0;
);
IN NS ns.example.com.
ns IN A 192.168.1.160
就可以了