?
Solved

what is the difference between a CNAME and an A record?

Posted on 2009-02-13
2
Medium Priority
?
1,607 Views
Last Modified: 2013-11-30
I don't understand what I need a CNAME record for? I have been only using A records and I guess I don't really understand what a CNAME is or why I would use it. Is it even necessary?
0
Comment
Question by:level9tech
  • 2
2 Comments
 
LVL 8

Expert Comment

by:pzozulka
ID: 23634931
A Record - Returns a 32-bit IPv4 address, most commonly used to map hostnames to an IP address of the host.

CNAME - Alias of one name to another: the DNS lookup will continue by retrying the lookup with the new name. This helps when running multiple services (like an FTP and a webserver; each running on different ports) from a single IP address. Each service can then have its own entry in DNS (like ftp.example.com. and www.example.com.). Network administrators also use CNAMEs when running multiple HTTP servers on the same port, with different names, on the same physical host.
0
 
LVL 8

Accepted Solution

by:
pzozulka earned 2000 total points
ID: 23635000
The most popular use the CNAME-record type is to provide access to a web-server using both the standard "www.domain.com" and "domain.com" (without the www).
This is usually done by creating an A-record for the short name (without www), and a CNAME-record for the www name pointing to the short name.
A CNAME-record should always point to an A-record to avoid circular references.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will be showing you how to subnet the easiest way possible for IPv4 (Internet Protocol version 4). This article does not cover IPv6. Keep in mind that subnetting requires lots of practice and time.
LinkedIn blogging is great for networking, building up an audience, and expanding your influence as well. However, if you want to achieve these results, you need to work really hard to make your post worth liking and sharing. Here are 4 tips that ca…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question