- 论坛徽章:
- 0
|
rndc:connect failed connection refused怎么办?
为了让大虾分析,我把/etc/rndc.conf /etc/rndc.key /etc/rndc.costom /etc/named.conf
都贴出来,
*********************rndc.conf*********************
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "8a74dha7ByNAge2xyMHUCQ==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
# algorithm hmac-md5;
# secret "8a74dha7ByNAge2xyMHUCQ==";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf
*******************************rndc.key*************************
key "rndc-key" {
algorithm hmac-md5;
secret "8a74dha7ByNAge2xyMHUCQ==";
};
********************************named.conf******************
## named.conf - configuration for bind
#
# Generated automatically by redhat-config-bind, alchemist et al.
# Any changes not supported by redhat-config-bind should be put
# in /etc/named.custom
#
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
include "/etc/named.custom";
include "/etc/rndc.key";
********named.custom*********************
## named.custom - custom configuration for bind
#
# Any changes not currently supported by redhat-config-bind should be put
# in this file.
zone "." {
type hint;
file "named.ca";
};
options {
directory "/var/named/";
};
***********************/var/log/messages*************
[root@IBM root]# tail /var/log/messages
Jul 13 06:47:09 IBM named[2094]: using 1 CPU
Jul 13 06:47:09 IBM 7月 13 06:47:09 named: named 启动 succeeded
Jul 13 06:47:09 IBM named[2094]: loading configuration from '/etc/named.conf'
Jul 13 06:47:09 IBM named[2094]: no IPv6 interfaces found
Jul 13 06:47:09 IBM named[2094]: listening on IPv4 interface lo, 127.0.0.1#53
Jul 13 06:47:09 IBM named[2094]: listening on IPv4 interface eth0, 210.75.112.138#53
Jul 13 06:47:09 IBM named[2094]: could not configure root hints from 'named.ca': file not found
Jul 13 06:47:09 IBM named[2094]: loading configuration: file not found
Jul 13 06:47:09 IBM named[2094]: exiting (due to fatal error)
Jul 13 06:47:10 IBM kernel: Device not ready. Make sure there is a disc in the drive.
**************************************************
named.ca就什么文件?我觉得就是他的问题.大虾告诉我这么解决阿,受不了了. |
|