A lot of the time, when you are editing DNS records, there is a confusion between acronyms.
A Record, CNAME, MX, TXT, etc What are all these? Please read on
TOP level domain > .com .net
Second Level domain .co.nz .com.au etc
SOA record Start of Authority record -> it just simply all details about the domain for example, nameservers, name of the admin, TTL etc.
A Record is used to translate the domain name to its IP address.
yourdomain.com points to> 50.63.202.11
NS Record Name Server Record ns1.yourhosting.com ns2.yourhosting.com
PTR record is a reverse of A record. It looks up for name against IP address.
CNAME stands for Canonical name
Suppose you have an existing domain (DomainA) resolving to an IP address. And the you purchased a second domain (DomainB).
You dont want DomainB to resolve to different IP address. You want to point it to the same IP address as domain A.
What you can do is map the second domain (DomainB) to the existing domain (DomainA) so that the resolve to the same IP address as DomainA.
The result is when a user enters any of these domains, it will direct them to the same website (or same IP address).
Throw in a Nerdy side of me, you can remember CNAME like this.
Who is Bruce Wayne > Look up for Batman > and Batman stays at 1007 Mountain Drive, Gotham.
ALIAs is just like CNAME but the difference is you cant have CNAME for naked domain names, for example mydomain.com
It has to be either A record or an ALIAS.
ALIASes are normally used in AWS to point to AWS resources like EC2, S3, load balancers etc.
TTL Time to live, its basically Caching on either the resolving server or on your local system.
The lower the TTL, the faster it resolves. It could take 48 hours to propagate on all the servers throughout the internet.
MX records are mainly used for emails, if you are setting up an email like mymail@mydomain.com, then you are going to use this.