Dns 出现rndc错误
ip2named.zone
@ IN SOA www.test.com. root.www.test.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
127.0.0.1 IN PTR localhost.
192.168.123.101 IN PTR www.
named2ip.zone
@ 1D IN SOA www.test.com. root.www.test.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
localhost 1D IN A 127.0.0.1
www 1D IN A 192.168.123.101
named.conf
test.com.zonezone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "test.com"IN {
type master;
file "test.com.zone"
allow-update{none;};
};
zone "123.168.192.in-addr.arpa"IN{
type master;
file "ip2named.zone";
allow-update{none;};
};
include "/etc/rndc.key";
运行出现
Stopping named: rndc: connect failed: connection refused
怎么办??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
named-checkconf
named-checkzone
用这两个命令看一下你配置对不对.
更多的可以 man 一下看看.
有没有/etc/rndc.key,文件里的东西是不是正确
我想应该是rndc的问题
./usr/local/sbin/rndc-confgen > /etc/rndc.conf
rndc-confgen -a
测试的看看
参考
Q: I get "rndc: connect failed: connection refused" when I try to run rndc.
A: This is usually a configuration error.
First ensure that named is running and no errors are being reported at
startup (/var/log/messages or equivalent). Running "named -g <usual
arguments>" from a title can help at this point.
Secondly ensure that named is configured to use rndc either by "rndc-confgen
-a", rndc-confgen or manually. The Administrators Reference manual has
details on how to do this.
Old versions of rndc-confgen used localhost rather than 127.0.0.1 in /etc/
rndc.conf for the default server. Update /etc/rndc.conf if necessary so that
the default server listed in /etc/rndc.conf matches the addresses used in
named.conf. "localhost" has two address (127.0.0.1 and ::1).
If you use "rndc-confgen -a" and named is running with -t or -u ensure that
/etc/rndc.conf has the correct ownership and that a copy is in the chroot
area. You can do this by re-running "rndc-confgen -a" with appropriate -t
and -u arguments.
只有再顶了
顶到有答案为止
去dns版看看,问问那的斑竹. 网中人 or 阿饶
你的主机名是什么
与配置文件关系不大。问题很可能出在防火墙的配置上。建议你先关闭防火墙试试。我遇到过这样的问题,关闭防火墙就好了。只是测试,最好还要把防火墙加上,记得端口好象是9××。
自己顶一下