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?

  • Because it was designed to function in that manner.
    – NickW
    Commented Dec 10, 2013 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
    Commented Dec 10, 2013 at 18:49

1 Answer 1


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .