主域名服务器:1. ip:172.17.0.142
[root@localhost var]# vim /var/named/chroot/etc/named.rfc1912.zones ----添加下列内容
zone "zdj.com" IN {
type master;
file "zdj.com";
allow-transfer{172.17.0.37;};
};
zone "0.17.172.in-addr.arpa" IN {
type master;
file "172.17.0.zone";
allow-transfer {172.17.0.37;} ;
};
2.
[root@localhost named]# vim zdj.com --------编辑以下内容---正向解析
$TTL 1D
@ IN SOA ns1.zdj.com. root.zdj.com. (
0 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ NS ns1.zdj.com.
@ NS ns2.zdj.com.
ns1 A 172.17.0.142
ns2 A 172.17.0.37
www A 172.17.0.123
www A 172.17.0.122
www A 172.17.0.124
web CNAME www ---------别名
* A 172.17.0.252