Call (877) SITE-OPT (748-3678)

Code: DNS Domain Aliasing Using CNAMEs

Chapter 9 - Advanced Web Performance Optimization

CNAMEs make one hostname an alias of another, and take the following form:

nickname [optional TTL] class CNAME canonical-name

For example: IN CNAME IN CNAME

where IN indicates Internet, and CNAME indicates CNAME record.

The preceding records indicate that are aliased to Note that you must also have an A record that points to an IP address.

For example: IN A

These records are stored in a "zone" file on your DNS server. In addition, the web server needs to be configured to respond to your new CNAME address. The VirtualHost and ServerAlias configuration directives are often stored in the httpd.conf file.

For example:

    DocumentRoot /var/www/images
    CustomLog /var/log/httpd/ combined
Copyright © 2002-2018 Website Optimization, LLC. All Rights Reserved - Free website speed test - Privacy Policy
Last modified: February 19, 2009.

Follow us on: Twitter, Google+, Facebook, Linked In