• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1239
  • 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
 
d0ughb0yPresident / CEOAuthor Commented:
I didn't actually think it would work, but figured someone would know! And I was right! Thanks a lot, folks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

How do you know if your security is working?

Protecting your business doesn’t have to mean sifting through endless alerts and notifications. With WatchGuard Total Security Suite, you can feel confident that your business is secure, meaning you can get back to the things that have been sitting on your to-do list.

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