Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

assume a website is aliased. for instance www.sunnyweather.com is the alias and CNAME is xyzverycomplex.sunnyweather.com. After you query and get the CNAME you then need to query the A Type for the xyzverycomplex.sunnyweather.com . the question is: why do I should care about the CNAME? why I can't get directly the IP address of the alias from the name server?

share|improve this question
    
Because it was designed to function in that manner. –  NickW Dec 10 '13 at 15:06
    
given that we are always seeking the quickest way to get a full answer (query, or anything else) especially in Internet (still a best effort network), and given the number of queries possible per user, I guess there is a more motivated and/or involved answer. –  Raph Dec 10 '13 at 18:49
add comment

1 Answer

You can do both.

If you use A records for all your ip addresses you must change each and every record affected every time you need to change the ip address, e.g., when you change the ip address of a server.

Using CNAME records enable you to group the ip addresses in a logical way so you often only need to change a few entries, e.g., an A record to change all the references to a server.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.