Can I have separate IP for A record & MX record

I have abc.tv site which is configured on a.a.a.a IP and my mailing solution([email protected]) which I want to configured on y.y.y.y IP address. Is is possible to have separate IPs fo my A record & MX record as below?

Domain name - abc.tv A Record - a.a.a.a MX record - y.y.y.y

please suggest


MX records were invented for precisely this application: allowing mail for a specific host to be handled by another host.

The first thing to point out is that MX records do not contain IP addresses, they container a pointer to a hostname.

So for your example you would have something like:

abc.tv.      A    a.a.a.a
             MX 5 mail.abc.tv.
mail.abc.tv. A    y.y.y.y

The host pointed to by the MX record must have an A or AAAA record and cannot be a CNAME record. (thanks to Ludwig Weinzierl in comment below for pointing out this omission)


An MX record must be a name, not an IP. That means the host pointed to by an MX record for your domain must itself be directly resolvable to an A record.

However there is no requirement for that A to be part of your domain. For example you can have Google Apps handle the MX records for your domain, while you manage the A records for the domain and www.


As an addition to the other correct answers.

MX records: not only can they be different from your primary domain A record's IP address, you can even have multiple MX records (called backup or secondary MX) and specify a priority value, for example:

MX 10 mail.abc.tv.
MX 20 mail2a.abc.tv.
MX 20 mail2b.abc.tv.
MX 30 backupmail.provider-example.com.

As you also see in this example, mail exchangers needn't to be on the same domain.