Zimbra Collaboration Suite Open Source Edition On CentOS - Page 2

4 Installation Of Split DNS

This part of installation is working off of the assumption that you are behind a firewall. If you are not behind a firewall (not recommended) you can skip this part of the installation.

I need to give credit where it is due. The chroot portion of this tutorial is adapted from Sebastien Wains. His CentOS Bind Chroot tutorial can be found at http://www.wains.be/index.php/2007/12/13/centos-5-chroot-dns-with-bind/. The Split DNS tutorial is adapted from the Zimbra Wiki and can be found at http://wiki.zimbra.com/index.php?title=Split_dns.

yum install bind bind-chroot bind-libs bind-utils

REMINDER: Be sure to use the ip address and hostname/FQDN that is appropriate for your installation.

Create the /var/named/chroot/etc/named.conf file:

vim /var/named/chroot/etc/named.conf

options {
       directory "/var/named";
       dump-file "/var/named/data/cache_dump.db";
       statistics-file "/var/named/data/named_stats.txt";
forwarders { 192.168.0.10 ; };
};
include "/etc/rndc.key";
// We are the master server for mail.geekdept.com
zone "mail.geekdept.com" {
    type master;
    file "db.mail.geekdept.com";
};

The ip address for forwarders should be the ip address of your dns server.

Now you need to create your /var/named/chroot/var/named/db.mail.geekdept.com file

vim /var/named/chroot/var/named/db.mail.geekdept.com

;
;       Addresses and other host information.
;
@       IN      SOA     mail.geekdept.com. hostmaster.mail.geekdept.com. (
                               10118      ; Serial
                               43200      ; Refresh
                               3600       ; Retry
                               3600000    ; Expire
                               2592000 )  ; Minimum
;       Define the nameservers and the mail servers
               IN      NS      192.168.0.45
               IN      A       192.168.0.45
               IN      MX      10 mail.geekdept.com.

Change your resolv.conf to use your mail server's IP address as it's primary DNS.

vim /etc/resolv.conf

search geekdept.com
nameserver 192.168.0.45

Start named on your server

/etc/init.d/named start

Enable autostart for named.

chkconfig named on

To verify that it is working do the following:

nslookup mail.geekdept.com

It should return something similar to this:

Server:         192.168.0.45
Address:        192.168.0.45#53
Name:   mail.geekdept.com
Address: 192.168.0.45

Notice that the ip address returned is the same as the local machine. That means success.

Now we can move on to installing ZCS.

Share this page:

10 Comment(s)

Add comment

Comments

From: at: 2008-07-16 05:59:16

When you do "yum install libtool-ltdl " you'll probably also have to do "yum install compat-libstdc++-33 compat-libstdc++-296". My system certainly didn't have those components and they are a prereq for ZCS.

From: Mike D at: 2009-09-27 07:08:22

I also found sysstat wasn't installed!

 yum install sysstat

From: at: 2008-06-02 07:15:14

Please note that Zimbra does not support CentOS. (Its NOT identical to RedHat.)
RedHat servers are supported.
Zimbra team suggests using Ubuntu 6.06.1 LTS instead.

 

From: patrick at: 2010-05-13 07:35:49

while installing on centos,after unpacking your zcs setup marked RHEL, use this command to install:

#sh .install.sh --platform-override

this worked perfectly for me:)

From: Anonymous at: 2011-04-09 16:14:10

if you select centos extras it will restart the installation, something about error !!!!

From: Anonymous at: 2010-02-16 17:19:20

It seems that the installation of Zimbra 6 on CentOS 64 requires "sysstat" to be installed. Without it, installation fails. This is not mentioned in the instructions. I don't know if this is true for 32 bit versions.

From: at: 2008-07-15 22:29:45

There's a good chance that after running the "/etc/init.d/named start" command, you'll get an error similar to "/etc/named.conf:7: open: /etc/rndc.key: file not found". Solve this by running "cp /var/named/run-root/etc/rndc.key /var/named/chroot/etc/rndc.key".

From: wilsonfiifi at: 2009-10-24 09:55:11

You have a little mistake in the "db.mail.geekdept.com" file (misplaced closing parenthesis). It should reads as:

;
; Addresses and other host information.
;
@ IN SOA mail.geekdept.com. hostmaster.mail.geekdept.com. (
10118 ; Serial
43200 ; Refresh
3600 ; Retry
3600000 ; Expire
2592000 ; Minimum
);
Define the nameservers and the mail servers
IN NS 192.168.0.45
IN A 192.168.0.45
IN MX 10 mail.geekdept.com.

From: at: 2008-03-25 19:28:29

./install.sh --platform-override 


is the command for Zimbra 5.04

From: Anonymous at: 2008-12-18 11:29:28

Instead of the '--override' command you can also edit /etc/redhat-release to contain "Red Hat Enterprise Linux Server release 5 (Tikanga)"instead of the CentOs stuff written in there.