yum install bind bind-chroot
[[email protected] named]# cat /etc/named.conf
options {
directory "/var/named";
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "named.localhost";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
};
zone "sxlfxx.cn" IN {
type master;
file "sxlfxx.cn.zone";
};
[[email protected] named]# cat /var/named/sxlfxx.cn.zone
$TTL 86400
znke.cn. IN SOA ns1.sxlfxx.cn. admin.sxlfxx.cn. (
2014121001
1H
5M
2D
6H )
IN NS ns1
IN MX 10 mail
ns1 IN A 192.168.3.5
mail IN A 192.168.3.5
www IN A 182.92.166.130
test IN A 114.112.96.62
ftp IN CNAME www
如果不行...复制这两个配置文件到
/var/named/chroot/etc/named.conf
/var/named/chroot/var/named/sxlfxx.cn.zone