Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hy, I got a domain (say example.com) and a server (say IP 1.2.3.4). 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 mail.example.com should be routed to another ip (say IP 2.3.4.5)

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

@                        IN A       1.2.3.4
mail                     IN A       2.3.4.5
*                        IN CNAME   @

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

@                        IN A       1.2.3.4
mail                     IN A       2.3.4.5
*                        IN A       1.2.3.4

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.

Thanks!

share|improve this question
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.