BIND9中配置子域授权及泛域名解析
2007-07-09 by kenthy#qingdaonews.com
#################################################################
系统环境:RHEL4 [ 2.6.9-5.EL ]
BIND版本:
bind-9.2.4-2
bind-utils-9.2.4-2
bind-chroot-9.2.4-2
bind-libs-9.2.4-2
#################################################################
目标功能:
DNS Server1: 1.2.3.4/24
主域:redhat.com
[ns、www、mail.redhat.com指向1.2.3.4,其余地址作泛域名解析,指向1.2.3.44]
子域:cn.redhat.com
[子域授权给1.2.3.5/24解析]
DNS Server2: 1.2.3.5/24
主域:cn.redhat.com
[ns.cn.redhat.com指向1.2.3.5,其余地址作泛域名解析,指向1.2.3.55]
#################################################################
DNS Server1:
1、主配置文件
# vi /var/named/chroot/etc/named.conf
options {
directory "/var/named";
forwarders { 202.106.0.20; 218.56.57.58; }; //为其它域解析作转发设置
};
zone "redhat.com" IN {
type master;
file "redhat.com.zone";
};
2、区域数据库文件
# vi /var/named/chroot/var/named/redhat.com.zone
$TTL 86400
@ SOA ns.redhat.com. root.ns.redhat.com. (
2007070901
3H
15M
1W
1H
)
IN NS ns.redhat.com.
ns IN A 1.2.3.4
redhat.com. IN A 1.2.3.4
www IN A 1.2.3.4
mail IN CNAME 1.2.3.4
cn IN A 1.2.3.5
IN NS ns.cn.redhat.com.
ns.cn.redhat.com. IN A 1.2.3.5
* IN A 1.2.3.44
DNS Server2:
1、主配置文件
# vi /var/named/chroot/etc/named.conf
options {
directory "/var/named";
forwarders { 1.2.3.4; }; //为其它域解析作转发设置
};
zone "cn.redhat.com" IN {
type master;
file "cn.redhat.com.zone";
};
2、区域数据库文件
# vi /var/named/chroot/var/named/cn.redhat.com.zone
$TTL 86400
@ SOA ns.cn.redhat.com. root.ns.cn.redhat.com. (
2007053001
3H
15M
1W
1H
)
IN NS ns.cn.redhat.com.
ns IN A 1.2.3.5
cn.redhat.com. IN A 1.2.3.5
* IN A 1.2.3.55
阅读(5747) | 评论(0) | 转发(0) |