MX of different Domain

arvindm

New member
Joined
Jan 5, 2011
Messages
2
Hi
I am new to DNS bind need some help on adding MX for a different domain into a zone.

I have zone file for example abc.com and is listed below. Currently MX is 69.x.x.x
I got to a request to change MX to mail residing outside means is in different domain.

Details are below
MX preference = 1, mail exchanger = MIDDLEBURYINTERACTIVE.COM.S10A1.PSMTP.com
MX preference = 2, mail exchanger = MIDDLEBURYINTERACTIVE.COM.S10A2.PSMTP.com

I tried adding names and even with IP address to which these resolves but nothing worked could be I am missing some syntax. Any input/help will be appreciated -Thnx

; abc.com
;
; --------------------------------------------------------------------------
; $Id$
; Change History:
;
; 20080926 xxxxxxxx zone file created
; 20081015 xxxxxxxx Modified MX
; 20091117 xxxxxxxx Added A record for
; 20091120 xxxxxxxx Added A record for
; 20091221 xxxxxxxx Added A record for
;
; --------------------------------------------------------------------------
;
$INCLUDE master/SOA
$INCLUDE master/NS
$INCLUDE master/mx-abc
$INCLUDE master/www-abc
$INCLUDE master/community
smtpr2 IN A 69.x.x.x


================

[root@ns master]# more mx-abc

; created on 10/15/08 by
;
; --------------------------------------------------------------------------
; $Id$
; Change History:
; 20081015
; 20081028
; 20100120
; --------------------------------------------------------------------------
@ MX 10 smtpr2
smtpr2 A 69.x.x.x
mail CNAME smtpr2

==================
 
@ IN MX 10 MIDDLEBURYINTERACTIVE.COM.S10A1.PSMTP.com.
@ IN MX 20 MIDDLEBURYINTERACTIVE.COM.S10A2.PSMTP.com.
 
Best way is to use the MX Records link from the DirectAdmin user-level login.

Just delete the default MX records and insert the new ones.

And don't forget to uncheck the Local Mail Server option and save.

Jeff
 
Back
Top