Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am having trouble configuring my mail server. I cannot seem to get the dns entry correct.

Currently I have: RHEL 5.7 hostname = with the ip

A Name>

I need an mx record also. Trouble is do i cannot figure out how do do it?

mx ------>
mx ------> A name
mx ------>

Any ideas on how to configure this?

share|improve this question
what DNS server are you using? –  Lucas Kauffman Apr 3 '12 at 15:14

1 Answer 1

As per RFC 1035, an MX record must be a canonical hostname; no A record or CNAME is allowed.

If the box is to handle mail for the entire domain, the record looks like this: IN MX 10
share|improve this answer
It will only handle mail for anything on going to not mail for all of –  southard Apr 3 '12 at 15:40
So: mx>, just like your last row –  Sandman4 Apr 3 '12 at 16:02
I thought an MX record could not point to a A name record? –  southard Apr 3 '12 at 16:59
The A record would be the IP address for a given name, not the name. The MX record in this case points at the name. –  cjc Apr 3 '12 at 17:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.