[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1127
  • Last Modified:

CNAME vs. A - Who Wins?

In a fight between an A record and a CNAME record, who wins? In other words, if I have an A record for SERVER_X pointing to, and another one for SERVER_Y pointing to, and I create a CNAME record for SERVER_X pointing to SERVER_Y:

Would BIND allow me to do it?
Would the Windows server version allow me to do it?
If so, which record takes precedence?
2 Solutions
You can't create a CNAME if the A record already exists for the same name.

So if you have an A record for SERVER_X you can't have a CNAME called SERVER_X as well.  I don't know if BIND will let you do it, but MS Windows DNS will not, you'll get an error.
CName Recoord takes precedence

Where did you see this?  I don't think this is correct because you can't create a CNAME and A record with the same name.  Hence there is no such thing as precedence in this instance.
TheCleaner is correct.

And to add to his answer, no you cannot do it in BIND either -- you just can't do it period.
28-Oct-2011 09:23:38.037 update: info: client updating zone 'domain.com/IN': attempt to add CNAME alongside non-CNAME ignored

Open in new window

d0ughb0yAuthor Commented:
I didn't actually think it would work, but figured someone would know! And I was right! Thanks a lot, folks!

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now