DNS分离解析实验排障(日志文件排错)

文章目录


在启动服务的过程中,一直出现报错信息
在这里插入图片描述
我们从报错的提示消息中看不出原因,我们进入日志文件查看,日志文件在
/var/log/message中,定位报错信息。
在这里插入图片描述

Jul  9 09:34:19 localhost systemd: Stopping Berkeley Internet Name Domain (DNS)...
Jul  9 09:34:19 localhost named[25778]: received control channel command 'stop'
Jul  9 09:34:19 localhost named[25778]: shutting down: flushing changes
Jul  9 09:34:19 localhost named[25778]: stopping command channel on 127.0.0.1#953
Jul  9 09:34:19 localhost named[25778]: stopping command channel on ::1#953
Jul  9 09:34:19 localhost named[25778]: no longer listening on 127.0.0.1#53
Jul  9 09:34:19 localhost named[25778]: no longer listening on 20.0.0.1#53
Jul  9 09:34:19 localhost named[25778]: no longer listening on 192.168.100.1#53
Jul  9 09:34:19 localhost named[25778]: no longer listening on 192.168.122.1#53
Jul  9 09:34:19 localhost named[25778]: no longer listening on ::1#53
Jul  9 09:34:19 localhost named[25778]: exiting
Jul  9 09:34:19 localhost systemd: Stopped Berkeley Internet Name Domain (DNS).
Jul  9 09:34:19 localhost systemd: Starting Generate rndc key for BIND (DNS)...
Jul  9 09:34:19 localhost systemd: Started Generate rndc key for BIND (DNS).
Jul  9 09:34:19 localhost systemd: Starting Berkeley Internet Name Domain (DNS)...
语法报错##Jul  9 09:34:19 localhost bash: /etc/named.rfc1912.zones:36: when using 'view' statements, all zones must be in views
Jul  9 09:34:19 localhost systemd: named.service: control process exited, code=exited status=1
Jul  9 09:34:19 localhost systemd: Failed to start Berkeley Internet Name Domain (DNS).
Jul  9 09:34:19 localhost systemd: Unit named.service entered failed state.
Jul  9 09:34:19 localhost systemd: named.service failed.

上面的报错提示是如果我们使用了“view”,则所有的“zone”必须都要在“view”的{}中,也就是我们要删除在区域配置文件中view以外的zone。

猜你喜欢

转载自blog.csdn.net/kimowinter/article/details/107220706