- 论坛徽章:
- 0
|
在redhat9下设置了dns.服务器。却怎么都打不开网页(用ip可以)。请大家帮忙分析分析。
首先是有两台linux机器。通过路由器直接连到外网上。一台是www服务器,一台装了redhat9做dns服务器。
named.conf设置如下(red.com 是域名).
## 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";
zone "red.com" {
type slave;
file "red.com.zone";
masters {
};
};
zone "XXX.XXX.XXX.in-addr.arpa" {
type master;
file "XXX.XXX.XXX.in-addr.arpa.zone";
};
zone "red.com" {
type master;
file "red.com.zone";
};
还有,在restart named的时候,出现了rndc不能连接的提示。提示如下
med:rndc: connect failed: connection refused
[失败]
[root@dns root]# [ 确定 ]
这个是不是rndc没有设定好? |
|