Subscribe Newsletter

Your Name  : 
Email Address *  : 
  • Online: Get Electricity Bill Now on Mobile and Email | Bala-Krishna
  • webs.com: com and type in the IP address you want to convert into its decimal url,...
  • PNR Status: check multiple pnr status with a single click PNR Status
  • Click here: Cheers for the informative blog post, I truly appreciated it. I would...
  • Leela: Only site on web which allows checking of Multiple Train PNR Status with a...
  • PUNEET: getting authentication error in digsby while opening yahoo email accounts,...
  • Arvind Pandit: Search your bank SWIFT code online | Bala-Krishna
  • pokemon: Wordpress WP_Categories doesn?t exist Error Fix | Bala-Krishna
  • Jambula Hanmanth Reddy: SIR/MADAM, I have forgot my username,password,and...
  • Jitendrakumar: This is working Perfectly. Thanks Buddy
  • ashfaq: nice post it well me lot no 1 has solution for this problem
  • irctc pnr status: This is useful information to know the pnr status. Thanks for...
  • Maria: How? How do you change the Digsby default yahoo server to the new one?...
  • Archives

  • Blog Stats

What is Difference Between DNS CNAME & A Record

CNAME stands for Canonical Name for a domain. CNAME is an alias records that create association between a sub-domain and antother domain or subdomain.

And, A Record simply creates an association between a domain/sub-domain name and an IP Address.

Example CNAME
gallery.bala-krishna.com -> gallery.another-domain.com -> 64.1.236.65

you can see above CNAME require two DNS lookup to translate domain/subdomain to an IP Address. If client request for gallery.bala-krishna.com then DNS record will return gallery.another-domain.com then gallery.another-domain.com has to query DNS to translate gallery.another-domain.com into IP Address.

CNAME Record Syntax:
www? ? 14400? ? IN? ? CNAME? ? bala-krishna.com

Example A Record

gallery.another-domain.com -> 64.1.236.65

In case of gallery.another-domain.com, A record directly point to an IP Address so the DNS lookup directly returns IP Address to the client rather then domain/subdomain. hence only one DNS lookup required.

A Record Syntex:
ftp? ? ? ? 14400? ? IN? ? ? A? ? ? 67.159.45.3


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

6 Responses to “What is Difference Between DNS CNAME & A Record”

  1. gallery.bala-krishna.com will point to 64.1.236.65. In other words, are we hiding real ip? & when do we need to practise this feature

  2. If you are planing on doing this from home keep in mind that your connection is likely asymmetrical. Meaning that your upload bandwidth is much less than your download bandwidth. This is great if you are browsing the net because most things are download. But if you are going to run any kind of VPN that slow upload will be the determining factor in overall speed. A VPN requires fast in and out. So a slow out will hamper it’s effectiveness. It’s going to be much more simple and effective to use a commercial personal vpn service like Aside from being fast the multiple server addresses will not get blocked by web filters like your home one will. However, if you really want to give it a shot then I would recommend OpenVPN It’s bullet proof and fast. You could set it up in a virtual machine on either computer and let it run in the background.

  3. Great post although complicated to understand mainly because I am from Germany ;-)

  4. great post … it is important to minimize these kind of requests … read the article “Minimize round-trip times / DNS lookups ” from google. Beste regards, Dauwie – webdesigner Gent

  5. Hi!
    Thank you for the article, really nice, but I have some more question regarding DNS queries. Trying to find out how does it works, but still not clear 4me…

    I need to estimate queries for our web site. I know that 1st it will depend on TTL we set, but I have doubt regarding navigation between domains, and subdomains.

    For ex.: the user starts on DOMAIN.COM, then goes to DOMAIN.ES, then to SUB.DOMAIN.ES, then go to XDOMAIN.COM and finally GO.XDOMAIN.COM – will every call to domain/subdomain generate DNS query or it doesn’t matter when user navigates on our site between domains and subdomains? Couldn’t find a reply anywhere…

    Thank you beforehand for your time and reply

  6. I was suggested this website by my cousin. I
    am no longer positive whether this publish is written by him as no one else realize such special about my problem.
    You’re wonderful! Thank you!

Leave a Reply