Welcome to WebmasterWorld Guest from

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
votes: 0


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
votes: 6

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
subdomain should be unaffected by the wildcard entry.

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


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members