Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say I've got a wildcard subdomain CNAME for root domain:


This works well for websites, e.g.

Now let's say I have an MX record on the root domain.

I assumed that emails to: would work, but they fail. Emails of the form work just fine.

Where am I going wrong?

share|improve this question
up vote 2 down vote accepted

If your MX record is for, mail addressed to will be delivered there if and only if there is no A record for, AND there is no redirection taking place for

Just Say No and remove the egregious CNAME:

* IN A
share|improve this answer
Hold on- I need the CNAME for the subdomains to point to the webserver; is it conflicting with the MX? – chrism2671 Nov 21 '11 at 17:42
No, you do not need the CNAME. – adaptr Nov 21 '11 at 17:42
To clarify adaptr a bit - you can have an A record for * - you don't need a CNAME. Also, you can enter MX records for as well, which might end run this whole thing, unless you're planning on having mail send to a fair bit. – Driftpeasant Nov 21 '11 at 19:22
Actually, I have to have * CNAME in order to get multiple subdomains to redirect to one server. But this would break the MX right? – chrism2671 Dec 17 '11 at 16:06

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.