Welcome to WebmasterWorld Guest from 54.158.227.99

Forum Moderators: phranque

Message Too Old, No Replies

DNS CNAME question

Which takes precedence?

     
9:01 am on Jan 7, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 17, 2004
posts:1354
votes: 0


Hello,

For one of my domains, I'm installing google apps (specifically, Google mail). Now, I wonder, which of the following two rules will take precedence? Assume they are included in the zone file in this order:

mail IN CNAME ghs.google.com.
* IN CNAME <mydomain>

say, I wanted to hit mail.google.com, would the wildcard record take precedence and kick you to <mydomain> or would the mail CNAME record take precedence?

8:04 pm on Jan 9, 2010 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9068
votes: 4


I haven't tested this in practice, but my understanding is that a wildcard is supposed to match requests for non-existent names only, so in your example, the
mail
subdomain should be unaffected by the wildcard entry.

There's this RFC which explains it in full: [tools.ietf.org...]