Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-2006, 10:36 PM
Project Contributor
 
Posts: 50
Default centos 4.4 DNS setting completely method.

(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:

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; };
};
in this example,i will add a domain home.cn.

(4)in root user
#cd /var/named/chroot/var/named/
#su - named
#vi home.cn.zone
add content like this

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.)
(important: pay enough attention to the dot at the end!,it is very important!!)

#vi 1.168.192.arpa.zone
add content like this
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.
(important: pay enough attention to the dot at the end!,it is very important!!)

(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!

Last edited by phoenix; 11-04-2006 at 11:10 PM..
Reply With Quote
  #2 (permalink)  
Old 11-04-2006, 11:07 PM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Thanks for posting that. A tip - if you highlight your code then hit the 'code' button (the # above the editing box) you'll get better formatted text for easier reading. This has also been covered in 'DNS in a nutshell' in the forums but it's always useful for a reminder.
__________________
Regards


Bill

Last edited by phoenix; 11-04-2006 at 11:10 PM..
Reply With Quote
  #3 (permalink)  
Old 11-05-2006, 05:19 AM
Project Contributor
 
Posts: 50
Default

thanks for that tip!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.