difference between A and CNAME records

What is difference between A and CNAME records in DNS ?

A and CNAME records used to map a host name to one or more IP address in DNS. It is very important that you should understand the differences between these two records.

This article will help to understand difference between A and CNAME records.

A Record

A record is used to points a name to specific IP Address. For example, if you want to the name blog.looklinux.com to point to the server you will need to configure like below.

blog.looklinux.com. A

CNAME Record

CNAME record is used to points a name to another name, instead of IP Addresss. The CNAME source represents an alias for the target name and inherits its entire resolution chain.

For example:

blog.looklinux.com.   CNAME   web.phpcommander.com.
web.phpcommander.com. CNAME   blog.studentvergo.com.
blog.studentvergo.com. A

Above we used blog.looklinux.com as a CNAME of web.phpcommander.com, which in turns is itself a CNAME of blog.studentvergo.com, which is an A record pointing to This means that blog.looklinux.com resolves to

So, A record points a name to an IP address and CNAME record can point a name to another CNAME or an A record.

I hope this article will help to understand difference between A and CNAME records. If you have any queries and problem please comment in comment section.




Easy Steps To Install Python3 On CentOS The default Python version 2.7 is still same on latest CentOS 7. It is also not available in base repositories.If you want to use python3 follow...
Check level of traffic on website using command li...  Hello Friend, In this post I am going to explain, how you can check the traffic level on your website using command line on your virtual and...
Why we can create only 4 Primary Partitions in HDD... Question: I would like to install CentOS alongside Windows 8 on my HP Laptop, but I noticed that this model has already four partitions. I would like ...
Googler – Command Line Google Search On Linu... OVERVIEW:Googler is the command line search tools. You can search web, news, google sites search etc just typing command in Linux. Every Linux u...
How To Install PHP Ioncube Loader In RHEL/Fedora/C... Ioncube is a utility which is used to encrypt/decrypt PHP application, using this utility you can safe you application data. Ioncube loader is free PH...
IoT – A Beginner’s Guide to know about... In this tutorial I am going to explain about basic IoT technology. We can connect everyday objects to the internet and to one another using with IoT...


Hi! I'm Sagar and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *