好好先生和各位高手进来帮我,DNS问题?
[glx@linuxone /etc]# service named restart
Stopping named: rndc: connect failed: connection refused
FAILED]
Starting named: OK ]
这是怎么回事?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
I'm not Mr HaoHao,Can I read this post?
你可以看一下service named status看有什么错
[root@linuxone xinetd.d]# service named status
rndc: connect failed: connection refused
错误依旧
服务原本就没有起来,当然连接不上,何谈restart
就是启动不起来,是什么原因啊。快说啊。
Feb 3 11:22:42 linuxone named[6067]: starting BIND 9.2.2 -u named
Feb 3 11:22:42 linuxone named[6067]: using 2 CPUs
Feb 3 11:22:42 linuxone named[6067]: loading configuration from '/etc/named.conf'
Feb 3 11:22:42 linuxone named[6067]: /etc/named.conf:42: key 'rndckey': already exists
Feb 3 11:22:42 linuxone named[6067]: loading configuration: failure
Feb 3 11:22:42 linuxone named[6067]: exiting (due to fatal error)
Feb 3 11:22:42 linuxone named: named startup succeeded
give me your namd.conf and find the path of your rndc.key .
应该是你的配置文件有问题了,贴出来一下。
// generated by named-bootconf.pl
//
// a caching only nameserver config
//
options {
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
directory "/var/named";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." {
type hint;
file "named.ca";
};
zone "localhost" {
allow-update { none; };
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" {
allow-update { none; };
type master;
file "named.local";
};
zone "yjy.jsjs.com.cn" {
type master;
file "yjy.jsjs.com.cn.zone";
};
zone "69.65.10.in-addr.arpa" {
type master;
file "69.65.10.in-addr.arpa.zone";
};
include "/etc/rndc.key";
key "rndckey" {
algorithm hmac-md5;
secret "M1V2YdTXrTjTSz0gOc45aLxUE00VwiVxGe6DHJC0XeUeJrRmHcorhTVegYHd";
};