Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been reading on AmazonWS that you use cname to use their webservices. Is CNAME when i have a file like this and then it really is at ? but the web user doesnt know this? he sees the url adress as in

share|improve this question

migrated from Oct 21 '10 at 0:30

This question came from our site for professional and enthusiast programmers.

CNAME is used in DNS Name Resolution It simply tells the resolver to use the IP of another Domain Name that is already defined. It is nothing more as an alias, see also Justice's answer and the definition.

But it is not exchanged in the URL, the CNAME record is only used to lookup the IP of, and the original url is then used.

In your example it would be:

When the client is requesting, he first looks up the IP for The client asks a nameserver, and the nameserver sees a CNAME record in the DNS entry for that tells him to use the IP of let's say it is, so the nameserver returns to the client.

The Client now uses the original url and requests it from the web server at

In the DNS entry for there would somewhere be a line like:

sarah             3600  IN A

In the DNS entry for          3600 IN CNAME
share|improve this answer

A CNAME record or Canonical Name record is a type of resource record in the Domain Name System (DNS) that specifies that the domain name is an alias of another, canonical domain 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 and Network administrators also use CNAMEs when running multiple HTTP servers on the same port, with different names, on the same physical host.

share|improve this answer

CNAME is abbreviation for "Canonical Name", which is the 'official' name for the host or resource given.

share|improve this answer

For more information you might be interested in some of the related RFCs.

RFC 1034 says "CNAME identifies the canonical name of an alias." In simple terms a CNAME is just an alias for a domain name, like a symbolic link to a file.

share|improve this answer

Your Answer


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