Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Need to know the difference between CNAME and an A Record to deploy your REST API? We got you covered.

If you are build­ing a rest­ful API using express/nodejs, it is likely that you will one day find your­self in a strange sit­u­a­tion where you will want to cre­ate a sub­do­main such as (assum­ing that you site is

Then you open your registrar’s con­fig­u­ra­tion, you fig­ure out that you prob­a­bly need to add some CNAME and A record entries. But what in the name of god are those two things.

This post is to help you get the gist of it in, lets say, 20 seconds!

difference between cname and a record

CNAME: Always points to another domain name.
A Record: Always points to an IP Address.

Usu­ally, you will setup stuff just the way its shown in the dia­gram so that tomor­row even if you feel a need to change your host ip address, just update your A Record map­ping and you’re good to go.

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...