Linux CentOS 7.5
配置DNS服务 重启失败 报错信息为:
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
输入“journalctl -xe”
月 14 01:25:28 SISE00.com bash[55991]: zone localhost.localdomain/IN: loaded serial 0
6月 14 01:25:28 SISE00.com bash[55991]: zone localhost/IN: loaded serial 0
6月 14 01:25:28 SISE00.com bash[55991]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: load
6月 14 01:25:28 SISE00.com bash[55991]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
6月 14 01:25:28 SISE00.com bash[55991]: zone 0.in-addr.arpa/IN: loaded serial 0
6月 14 01:25:28 SISE00.com bash[55991]: dns_master_load: zheng.zone:2: unexpected end of line
6月 14 01:25:28 SISE00.com bash[55991]: dns_master_load: zheng.zone:1: unexpected end of input
6月 14 01:25:28 SISE00.com bash[55991]: zheng.zone:8: using RFC1035 TTL semantics
6月 14 01:25:28 SISE00.com bash[55991]: zheng.zone:9: i$TTL.zjxy720.edu.cn: bad owner name (check-names)
6月 14 01:25:28 SISE00.com bash[55991]: zheng.zone:10: i$TTL.zjxy720.edu.cn: bad owner name (check-names)
6月 14 01:25:28 SISE00.com bash[55991]: zone zjxy720.edu.cn/IN: loading from master file zheng.zone failed: unexpected end of
6月 14 01:25:28 SISE00.com bash[55991]: zone zjxy720.edu.cn/IN: not loaded due to errors.
6月 14 01:25:28 SISE00.com bash[55991]: _default/zjxy720.edu.cn/IN: unexpected end of input
6月 14 01:25:28 SISE00.com bash[55991]: zone 225.168.192.in-addr.arpa/IN: loaded serial 0
6月 14 01:25:28 SISE00.com systemd[1]: named.service: control process exited, code=exited status=1
6月 14 01:25:28 SISE00.com 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.
6月 14 01:25:28 SISE00.com systemd[1]: Unit named.service entered failed state.
6月 14 01:25:28 SISE00.com systemd[1]: named.service failed.
6月 14 01:25:28 SISE00.com polkitd[766]: Unregistered Authentication Agent for unix-process:55981:877098 (system bus name :1.1
个人解答思路:据报错来看应该是配置文件的域名他无法解析。
①尝试在/etc/named.conf 这个配置文件添加“check-names master warn;” “check-names slave warn;”
结果:仍然是重启dns服务重启失败
以下是name.conf配置文件截图
以下是name.rfc1912.zones配置文件截图(只有最后两个zone是我添加的,所以截图只截取最后两个)
以下是zheng.zone截图(正向解析文件)
以下是fan.zone(反向解析文件)
dns的ip地址是192.168.225.11 另外一台是192.168.225.22