I think I know what A record does and what DNS does, but I still don’t get it how they really work. So here is a scenario.
The domain is registered on X, and is been hosted on Y, so we are using the DNS that the host company has provided. At this point everything is working fine. www
domain com working just fine as domain.com
.
But now we want to use CloudFlare to host our app/website. So cloud flare doesn’t give DNS's... So you go to X to change/add an A record to point to your app/website on CloudFlare basically you are done, but then you notice that:
By typing
foo.com
it shows your new app/website but…By typing
www.foo.com
it keep showing your old app/website.
So what else is there to change?
Some registrant give you the option of multiple A records (A1, A2, A3...) for each APP/SUB-DOMAIN withing the same DOMAIN, but some others only allow you to have 1 A record and 1 IP per domain(I personally think is not good enough 1 A record)...
So which one I better? an A record or DNS?
Which one should be use at all times?(I think i know the answer to that, a DNS?)