Job for named.service failed because the control process exited with error code. See “systemctl status named.service” and “journalctl -xe” for details.
[root@localhost named]#named-checkconf -z /etc/named.conf
/etc/named.rfc1912.zones:27: missing ';' before '}'
/etc/named.rfc1912.zones:28: missing ';' before 'file'
/etc/named.rfc1912.zones:53: missing ';' before '}'
/etc/named.rfc1912.zones:54: missing ';' before 'file'
发现问题是缺少分号
[root@localhost named]#systemctl restart named
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
发现还是有问题:问题再29及55行
[root@localhost named]#named-checkconf -z /etc/named.conf
/etc/named.rfc1912.zones:29: option 'allow-update' is not allowed in'slave' zone 'xyw.com'
/etc/named.rfc1912.zones:55: option 'allow-update' is not allowed in'slave' zone '15.158.192.in-addr.arpa'[root@localhost named]#vim /etc/named.rfc1912.zones[root@localhost named]#named-checkconf -z /etc/named.conf
/etc/named.rfc1912.zones:29: option 'allow-update' is not allowed in'slave' zone 'xyw.com'
/etc/named.rfc1912.zones:55: option 'allow-update' is not allowed in'slave' zone '15.158.192.in-addr.arpa'[root@localhost named]#systemctl restart named
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe"for details.
[root@localhost named]#named-checkconf -z /etc/named.conf
/etc/named.rfc1912.zones:29: option 'allow-update' is not allowed in'slave' zone 'xyw.com'
/etc/named.rfc1912.zones:55: option 'allow-update' is not allowed in'slave' zone '15.158.192.in-addr.arpa'[root@localhost named]#vim /etc/named.rfc1912.zones[root@localhost named]#systemctl restart named
错误:DNS解析:[root@localhost named]#systemctl restart named
错误:[root@localhost named]#systemctl restart namedJob for named.service failed because the control process exited with error code. See “systemctl status named.service” and “journalctl -xe” for details.这里写目录标题错误:[root@localhost named]#systemctl restart nam