how to set DNS - website remote, MX local

Mar 12, 2009
21
0
51
Hello

How to setup DNS for the following:

example.com -> website is on remote server: 1.1.1.1
example.com -> mail on local server: 2.2.2.2

this is clear: example.com IN A 1.1.1.1
unclear: how to setup MX record to receiving mail on local 2.2.2.2 server?

thank you

Zoltan
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Your MX record will need to be a hostname that points to an IP address of the local server. EX:

example.com. 14400 IN MX 0 mail.mail-server.com
You can modify the DNS Zone if the DNS is handled on the cPanel server via:

"WHM Home » DNS Functions » Edit DNS Zone"

Thank you.