报错内容:zone 226.168.192.in-addr.arpa/IN: NS 'dns.zhaoshao.xyz.226.168.192.in-addr.arpa' has no
-- Unit named-setup-rndc.service has finished starting up.
--
-- The start-up result is done.
Jun 21 21:41:31 localhost systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
-- Subject: Unit named.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named.service has begun starting up.
Jun 21 21:41:31 localhost bash[1490]: zone zhaoshao.xyz/IN: has no NS records
Jun 21 21:41:31 localhost bash[1490]: zone zhaoshao.xyz/IN: not loaded due to errors.
Jun 21 21:41:31 localhost bash[1490]: _default/zhaoshao.xyz/IN: bad zone
Jun 21 21:41:31 localhost bash[1490]: zone 226.168.192.in-addr.arpa/IN: NS 'dns.zhaoshao.xyz.226.168.192.in-addr.arpa' has no
Jun 21 21:41:31 localhost bash[1490]: zone 226.168.192.in-addr.arpa/IN: not loaded due to errors.
Jun 21 21:41:31 localhost bash[1490]: _default/226.168.192.in-addr.arpa/IN: bad zone
Jun 21 21:41:31 localhost polkitd[662]: Unregistered Authentication Agent for unix-process:1481:104725 (system bus name :1.33,
Jun 21 21:41:31 localhost systemd[1]: named.service: control process exited, code=exited status=1
Jun 21 21:41:31 localhost systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named.service has failed.
--
-- The result is failed.
Jun 21 21:41:31 localhost systemd[1]: Unit named.service entered failed state.
Jun 21 21:41:31 localhost systemd[1]: named.service failed.
lines 2168-2194/2194 (END)
以上为报错内容。各位大神们能帮忙看看吗?
以下是配置文件
主配置文件
session-keyfile "/run/named/session.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
#include "/etc/named.rfc1912.zones";
#include "/etc/named.root.key";
zone "zhaoshao.xyz" {
type master;
file "zhaoshao.xyz";
};
zone "226.168.192.in-addr.arpa"{
type master;
file "226.168.192";
};
正向解析
$TTL 86400
zhaoshao.xyz. IN SOA dns.zhaoshao.xyz. root.zhaoshao.xyz. (
20180511 ; serial
1H ; refresh
15M ; retry
1W ; expire
1D ) ; minimum
zhaoshao.xyz IN NS dns.zhaoshao.xyz.
dns IN A 192.168.226.132
mail IN a 192.168.226.105
~
反向解析
$TTL 86400
@ IN SOA 226.168.192.in-addr.arpa. root.zhaoshao.xyz (
201805511 ; serial
1H ; refresh
15M ; retry
1W ; expire
1D ) ; minimum
@ IN NS dns.zhaoshao.xyz
105 IN PTR mail.zhaoshao.xyz
~
~
~
~