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。

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值