单台Split DNS分离解析服务配置
2007-06-01 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/Gateway Server: 1.2.3.4/24、192.168.1.1/24
对公网用户解析: ----> 1.2.3.4
对内网用户解析: ----> 192.168.1.100
#########################################################################################
一、主配置文件
# vi /var/named/chroot/etc/named.conf
options {
directory "/var/named";
forwarders { 202.106.0.20; 218.56.57.58; }; //为其它域解析作转发设置
};
view "internal" IN {
match-clients { 192.168.1.0/24; };
recursion yes;
zone "redhat.com" IN {
type master;
file "redhat.com.inter";
};
};
view "external" IN {
match-clients { any; };
recursion no;
zone "redhat.com" IN {
type master;
file "redhat.com.exter";
};
};
二、对内数据库文件
# vi /var/named/chroot/var/named/redhat.com.inter
$TTL 86400
@ SOA . root. (
2007053001
3H
15M
1W
1H
)
IN NS dns.redhat.com.
dns IN A 192.168.1.1
www IN A 192.168.1.100
三、对外数据库文件
# vi /var/named/chroot/var/named/redhat.com.inter
$TTL 86400
@ SOA . root. (
2007053001
3H
15M
1W
1H
)
IN NS dns.redhat.com.
dns IN A 1.2.3.4
www IN A 1.2.3.4
阅读(1121) | 评论(0) | 转发(0) |