- 论坛徽章:
- 0
|
在设置DNS服务时遇到的问题:
[root@localhost tomsui]# /etc/init.d/named start
[root@localhost tomsui]# /etc/init.d/named restart [ 确定 ]
停止 named:rndc: connect failed: connection refused
[失败]
[root@localhost tomsui]# [ 确定 ]
麻烦帮忙看一下哪里出了问题, 我搞了好久也没搞好,不胜感激!!!!
我做的一些设置如下:
[root@localhost tomsui]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
[root@localhost tomsui]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search localdomain
nameserver 192.168.1.100
nameserver 202.106.0.20
nameserver 202.106.46.151
[root@localhost tomsui]# cat /etc/named.conf
options {
directory "/var/named";
listen-on port 53{
127.0.0.1
192.168.1.100
};
forward first;
forwaders {202.106.0.20; 202.106.46.151};
};
controls {
inet 127.0.0.1 allow {localhost;} keys {"rndc-key"};};
zone "." in {
type hint;
file "named.ca";
};
zone "localhost" in {
type master;
file "localhost.zone";
allow-update{ none; };
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "named.local";
};
zone "localdomain" in {
type master;
file "named.localdomain";
};
zone "0.168.192.in-addr.arpa" in {
type master;
file "named.ip";
};
include "/etc/rndc.key";
[root@localhost tomsui]# cat /etc/rndc.conf
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "zk2eDUQU7//PGffCPAvSpw==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
[root@localhost tomsui]# cat /etc/rndc.key
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
algorithm hmac-md5;
secret "zk2eDUQU7//PGffCPAvSpw==";
};
#
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
以上是我做的配置,如果有需要,我再把/var/named中的文件贴出来, 摆脱大家了,我实在搞不出来了.........
[ 本帖最后由 frlssimi 于 2006-10-5 19:57 编辑 ] |
|