DNS Record Types

What DNS is
Domain name system is like a contact book where we save our contacts with a name but behind the scene there are numbers . Same as that we search a domain like - chaicode.com but behind the scene the IP address is search for that domain.Why DNS records are needed
It is needed to store the instructions for a domain. where the website will open or where the mail will go.What an NS Record is
Name Server record it goes to DNS server to ask where is the A record.What an A Record is
Simply its an IP Address .that connects a domain to IPv4 address.What an AAAA Record is
It connects a domain to IPv6 addressWhat a CNAME Record is
Its called as the nickname of a domain like- chai.code.com — hitesh.comWhat an MX Record is
Simply it tells where should the email will delivered.What a TXT Record is
It is used to store text information also used for email security like helps in spam emails or fraud.How all DNS records work together for one website
When we search for chaicode.com then— DNS - NS -CNAME- A- then website opens.