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

Hy, I got a domain (say and a server (say IP I want to relay every traffic which is requested from the domain to my server. Every subdomain should be handled like this (so wildcard DNS). There should be one exception: The subdomain should be routed to another ip (say IP

My previous hoster made the following zone-file for the dns server for me:

@                        IN A
mail                     IN A
*                        IN CNAME   @

Now, my new DNS-Hoster claims this is invalid and proposes this new zone file to me:

@                        IN A
mail                     IN A
*                        IN A

Is the first one realy wrong? Is the second one correct and does what I want?

I already read I a Wildcard CName DNS Record Valid, so the first one should not be wrong but only unsuported.


share|improve this question

Read the full explanation here: Is a wildcard CNAME DNS record valid?

Is not wrong, but some providers doesn't support it.

Yes the second is correct and have the same efect.

share|improve this answer
Okay, I already read that. But does the second solution do the same? – theomega Mar 21 '11 at 9:56
yes have the same effect. – Sacx Mar 21 '11 at 10:02

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.