Connect Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 31 March 2013

Difference between CNAME and A records, and when they should be used.

Posted on 18:05 by Unknown
Websites are served from locations that are uniquely identified by a group of numbers, which are known as IP addresses; but to access these sites we usually type in their corresponding domain names, which are easier to remember. To find the correct IP address, your browser will contact a Domain Name Server (DNS) and query its database for the IP address.

What is an A Record?

An A record is a record in these Domain Name Servers that links or maps a domain directly to its corresponding IP address.

For example, when you type mydomain.com into your browser, your browser will perform a DNS lookup which will return the corresponding IP address eg. 111.222.333.444.
What is a CNAME Record?

A CNAME, or Canonical Name record, is a record that points to another domain address rather than an IP address.

For example, say you have several subdomains, like www.mydomain.com, ftp.mydomain.com, mail.mydomain.com etc and you want these sub domains to point to your main domain name mydomain.com. Instead of creating A records for each sub-domain and binding it to the IP address of your domain you can create CNAME records.

Examples of using CNAME records :


Domains registered in different countries
CNAME records can also be handy in the case that you registered your domain name in several countries and you want to redirect them all to your main domain. For example mydomain.com.au and/or mydomain.co.nz can be redirected to mydomain.com

Products and brand names
In case you have registered several domain names, for example for your different products or brand names and you want to redirect them all to your main domain, you create CNAME records for all these other domains. For example: myproduct.com > mydomain.com.

Limitations of CNAME records :
1. Usage of CNAME records means that there is an additional request sent to the DNS servers, which can cause a delay of a few milliseconds.

2. You cannot create a CNAME record for the main domain name (mydomain.com) itself, this must be an A record.
For example, you cannot map mydomain.com to google.com, however, you can map google.mydomain.com to google.com.

3. MX or NS (nameserver) records may never point to a CNAME record, only A records.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to schedule a PHP script in task scheduler
    Quiet often there is a need to execute/run  php  script on some time interval at server side. And that php scripts should run automatically ...
  • HTTP Error 403.19 – Forbidden The configured user for this application pool does not have sufficient privileges to run CGI applications.
    If you get the error “HTTP Error 403.19 – Forbidden The configured user for this application pool does not have sufficient privileges to...
  • Roles and Features showing an error HRESULT: 0x800F0818 in Server Manager of windows server 2008 R2
    When you open Server Manager both Roles and Features display Error and you are unable to add any role or features. When you select the det...
  • Error - "Failed to retrieve data for this request (Microsoft.SqlServer.Management.sdk.sfc)"
    ErrError    - In Microsoft SQL Management Studio 2008, you receive the following error message when you try to expand the Databases:      ...
  • How to configure IIS 7 to redirect non-www domain to www domain?
    One of few legacy leftovers that was never dropped over the years is the common use of www domain prefix. It is not a problem per se for us...
  • Back up all MS SQL databases at once
    This article will discuss how to backup all MS SQL databases with one script. A separate file will be created for each database. Log into ...
  • The media family on device is incorrectly formed. SQL Server cannot process this media family Error: 3241
    When you try to restore a backup of the database you get the following error: The media family on device ” is incorrectly formed. SQL Server...
  • How to check Malware injection in Code
    To check Malware injection in your script/Code you can use a Web based Google Tool called “Webmasters Tools” You can find it here Google We...
  • An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.
    If you are facing the following error while accessing the website: Error Summary HTTP Error 500.24 - Internal Server Error An ASP.NET settin...
  • Stopping Unneeded Services In Windows Server 2008
    By  default Windows 2008 starts with a number of services that actually do not need to be running. Many of these services can impact perfo...

Categories

  • booting Process
  • linux
  • redhat

Blog Archive

  • ▼  2013 (68)
    • ►  July (1)
    • ►  May (2)
    • ►  April (11)
    • ▼  March (54)
      • Windows 2008 Password Complexity
      • Unable to shrink database log file ( DBCC shrinkfi...
      • The media family on device is incorrectly formed. ...
      • The 'Microsoft.Jet.OLEDB.4.0' provider is not regi...
      • SQL Warning in Functions.php on line .....The func...
      • Shrinking Truncate SQL SERVER Log File
      • Roles and Features showing an error HRESULT: 0x800...
      • Restoring a MSSQL 2005 database stuck in suspect mode
      • PowerShell script cannot be loaded because the exe...
      • MySQL Password Reset
      • Limit SQL Connections through Windows Advanced Fir...
      • Microsoft JET Database Engine error ''80004005'' -...
      • How to shrink a database log file for MSSQL Using ...
      • IIS www service fails to start with error ID 1363
      • How to retireve the password for an email account ...
      • How to resolve Windows Login Error: "An unauthoriz...
      • How to reset a DNN password at the Database
      • How to resolve error ' Error 8004020e '
      • How to reset WordPress admin password
      • How to change the Data folder for SQL Server from ...
      • Horde logout error
      • Error: mailManager->turnOnDomain() failed: mailmng...
      • Force Visitor Browser to use SSL
      • Error: Access for administrator from address 'XX.X...
      • Error - "Failed to retrieve data for this request ...
      • Enable wildcard SSL certificate for the subdomains...
      • Enable multiple RDC sessions from one user in Wind...
      • Disable Shutdown option in Windows
      • Disallowed Parent Path
      • Difference between CNAME and A records, and when t...
      • Difference between Active and Passive modes in FTP
      • annot open database "DATABASENAME" requested by th...
      • Block IP address with Windows Firewall 2008
      • An ASP.NET setting has been detected that does not...
      • Adjust Page File / Virtual Memory on Server 2008
      • Access Smartermail without port
      • 503 This mail server requires authentication when ...
      • Error : 425 Can't Open Data Connection
      • "502 Bad Gateway" - Resolution
      • Error 15023: User already exists in current database.
      • Basic Mysql Commands
      • Basic FTP Commands
      • Unable to start MySQL "Error 1067: The process ter...
      • Cannot Add Attachments Using the SmarterMail Web I...
      • How to use a MySQL test script to verify if your M...
      • Access is denied. (Exception from HRESULT: 0x80070...
      • Set a Fixed Amount of Memory (SQL Server Managemen...
      • Could not load file or assembly \'CrystalDecisions...
      • Custom php.ini per domain in Plesk Windows server
      • How to upgrade Zen Cart 1.3.9 to Zen Cart 1.5
      • How to bulk import products into Zencart 1.5
      • How to move wordpress site to a new Website
      • An error has occurred. Furthermore, Horde encounte...
      • HTTP Error 403.19 – Forbidden The configured user ...
  • ►  2012 (44)
    • ►  September (20)
    • ►  August (1)
    • ►  July (4)
    • ►  June (12)
    • ►  May (2)
    • ►  March (4)
    • ►  February (1)
  • ►  2011 (1)
    • ►  February (1)
  • ►  2009 (9)
    • ►  September (3)
    • ►  August (2)
    • ►  June (1)
    • ►  May (2)
    • ►  March (1)
Powered by Blogger.

About Me

Unknown
View my complete profile