dns for mail server

D_wathi
D_wathi used Ask the Experts™
on
Dear Experts:

Iam in process of configuring the split dns for the zimbra mail server which is behind the firewall, as of now we have outsourced the mail services for which the relay server (fetch mails) is placed in the office (LAN) now we have decided to configure the mail server in the LAN for the same domain.

For this i have taken the step of adding the IP address (public ip ) in the domain control panel for the MX record and set the value higher than the existing.
Now i will not able to install the server as mail.abc.com as it is already there and do not want to disturb hence installed mail server as srv1.abc.com and about to configure the split dns here i have doubts mentioned below:
1. while configuring the split dns in the hosts file of the new mail server what should i give
127.0.0.1            localhost.localdomain   localhost
192.168.1.250      srv1.abc.com       mail        
                 OR
192.168.1.250       srv1.abc.com       srv1

2. created  file /etc/bind/db.abc.com

;
; BIND data file for abc.com
;
$TTL    604800
@       IN      SOA     mail OR srv1.abc.com. admin.abc.com. (
                         070725         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      mail OR srv1
        IN      MX      10 mail OR srv1
        IN      A       192.168.1.250
mail or srv1    IN      A      192.168.1.250

------------------------------------
please suggest me in the above whether it should be mail OR srv1




Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The instructions on the Zimbra Wiki site for split DNS are reasonably clear:
http://wiki.zimbra.com/wiki/Split_DNS#Edit_the_.2Fetc.2Fhosts_file

Since you are using BIND then the hosts file should contain the actual server address/names:
127.0.0.1            localhost.localdomain   localhost
192.168.1.250       srv1.abc.com       srv1

For the zone file, the SOA record should be the fully qualified server name:
@       IN      SOA     srv1.abc.com. admin.abc.com.

The NS record should be the server address:
IN      NS      192.168.1.250

For the MX and A records you could use the server name or "mail" as long as you are consistent:
           IN      MX      10     mail.abc.com
mail    IN      A          192.168.1.250

Don't forget to have the server DNS configured for the server address and to forward to your existing DNS.

Author

Commented:
Sir, Thanks for the reply, It is very much clear with zimbra if it was first implementation in my case already the relay server for the same domain is installed and configured for mail.abc.com as we decided to configure the mail server hence installed the server as srv1.abc.com and in the zone files i have donel like the below

/etc/bind/db.abc.com
; BIND data file for mydomain.com
;
$TTL    604800
@       IN      SOA     srv1.abc.com. root.abc.com. (
                         2011051700         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@               IN      NS      srv1
                IN      MX      20 srv1
                IN      A       192.168.1.230
srv1      IN     A       192.168.1.230

Please suggest me is this correct.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial