I'm trying to set up DNS records for a domain name, such that
mail.domain.com uses a server that is different from any other request to
*.domain.com. As I've been going about trying to figure out how to do this, I realize there's a possibility I'm in over my head.
I've tried a few things that have wound up with a `zone domain.com/IN not loaded due to errors. The zone file at the time looked like this (not hiding info since a simple DNS lookup with reveal everything anyways:
$TTL 1800 @ IN SOA ns1.domain.com. hostmaster.domain.com. ( 1393205447 ; last update: 2014-02-24 01:30:47 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS ns1.domain.com. NS ns2.domain.com. NS ns3.domain.com. MX 10 mail.domain.com. ns1.domain.com. IN A 198.000.000.125 ns2.domain.com. IN A 141.0.000.89 ns3.domain.com. IN A 198.000.00.114 @ IN A 107.000.00.138 * CNAME @ mail.domain.com. IN A 162.00.000.72 mail CNAME mail.domain.com.
So, first, is what I'm trying to do an acceptible "good practice/best practice", and second, if it is, how can I set this up so that mail requests go to the IP of the second server, and from there, do I need to set MX records as:
priority mail.domain.com. (What did I do wrong specifically in regards to redirecting mail.domain.com requests and mx DNS settings to the second servers IP
Note, I am using digitalocean, so I have a DNS entry panel that creates the zone file for me.