实例场景不能成功

来源:4-1 Bind服务实战场景一配置

channel_ho

2016-08-29 14:42

文件/etc/named.conf配置:

options{
	directory "/var/named";
};
zone "imooc.com"{
	type master;
	file "imooc.com.zone";
};

文件/var/named/imooc.com.zone配置:

$TTL 7200
imooc.com. IN SOA imooc.com. ho.imooc.com. (222 1H 15M 1W 1D)
imooc.com. IN NS dns1.imooc.com.
dns1.imooc.com. IN A 192.168.199.202
www.imooc.com. IN A 2.2.2.2

重启named服务就报错

报错信息:

Aug 29 14:37:39 localhost named[3625]: corporation.  Support and training for BIND 9 are 

Aug 29 14:37:39 localhost named[3625]: available at https://www.isc.org/support

Aug 29 14:37:39 localhost named[3625]: ----------------------------------------------------

Aug 29 14:37:39 localhost named[3625]: adjusted limit on open files from 4096 to 1048576

Aug 29 14:37:39 localhost named[3625]: found 1 CPU, using 1 worker thread

Aug 29 14:37:39 localhost named[3625]: using up to 4096 sockets

Aug 29 14:37:39 localhost named[3625]: loading configuration from '/etc/named.conf'

Aug 29 14:37:39 localhost named[3625]: none:0: open: /etc/named.conf: permission denied

Aug 29 14:37:39 localhost named[3625]: loading configuration: permission denied

Aug 29 14:37:39 localhost named[3625]: exiting (due to fatal error)


问题出在哪?怎么解决啊?

写回答 关注

1回答

  • channel_ho
    2016-08-29 14:46:32

    终于知道了,权限问题,已解决

    weixin...

    你怎么解决de

    2019-12-01 23:06:40

    共 1 条回复 >

Linux智能DNS服务搭建之Bind服务

Bind服务的安装与配置,掌握DNS正向解析客户端的相关命令

15825 学习 · 35 问题

查看课程

相似问题