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

x
  • 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 192.168.1.57, and another one for SERVER_Y pointing to 192.168.1.60, 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?
0
d0ughb0y
Asked:
d0ughb0y
2 Solutions
 
TheCleanerCommented:
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.
0
 
deependrasuroliaCommented:
CName Recoord takes precedence
0
 
TheCleanerCommented:
deep,

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.
0
 
PapertripCommented:
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 127.0.0.1#63029: updating zone 'domain.com/IN': attempt to add CNAME alongside non-CNAME ignored

Open in new window

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

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