(1)first install bind using "system setting"->"add/remove applications"->checked "DNS Name Server".
(2)in root user
#chkconfig --level 345 named on
#service named start
(3)edit file /etc/named.conf (actully ,this file link to /var/named/chroot/var/named/namd.conf)
add content like this:
in this example,i will add a domain home.cn.Code:zone "home.cn" IN { type master; file "home.cn.zone"; allow-update { none; }; }; zone "1.168.192.in-addr.arpa" IN { type master; file "1.168.192.arpa.zone"; allow-update { none; }; };
(4)in root user
#cd /var/named/chroot/var/named/
#su - named
#vi home.cn.zone
add content like this
(important: pay enough attention to the dot at the end!,it is very important!!)Code:$TTL 86400 home.cn. IN SOA cent.home.cn. root.home.cn. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum home.cn. IN NS cent.home.cn. centos.home.cn. IN A 192.168.1.8 home.cn. IN MX 5 centos.home.cn. mail IN CNAME centos (note:my server's hostname is centos.home.cn.IP address is 192.168.1.8,and i give it a cname is "mail.home.cn".DNS service is also provided by this machine.)
#vi 1.168.192.arpa.zone
add content like this
(important: pay enough attention to the dot at the end!,it is very important!!)Code:$TTL 86400 1.168.192.in-addr.arpa. IN SOA centos.home.cn. root.home.cn.( 20031001; 7200; 3600; 43200; 86400); 1.168.192.in-addr.arpa. IN NS centos.home.cn. 8 IN PTR mail.home.cn.
(5)in root user
#service named restart
#service named reload
and test DNS using nslookup.
by the way,i use zimbra in centos 4.4,it works fine!![]()


LinkBack URL
About LinkBacks

