DNS Deep Dive
what is DNS?

Hey everyone,
I'm Shamitha, working as a programmer analyst at amazon. and also i teach DSA and AWS in a practical way. look me up at teacheron!
Before diving into the ocean of DNS , lets look at what DNS is:
DNS → Its like the phonebook of the Internet.
- Examples of DNS: google.com, hashnode.com or linkedin.com etc
Every Instance/Server has an IP Address
DNS translates domain names to IP Addresses.
How do IP Addresses look?
IPV4 → 192.154.2.1
IPV6 → 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Internals when we type some domain name into the browser:

Explanation of the Above Image:
DNS Recursor: It is the main server that makes recursive calls to get the IP Address ( can be thought like a librarian)
- It makes calls to Root NameServer, TLD NameServer and Authoritative NameServer recursively.
Root NameServer: First step in translating human readable hostnames, It specifically points out the address of TLD NameServer for further processing .
Ex: It gives the address of the .com/.net/.in servers.
TLD NameServer: Top Level Domain NameServer is responsible for giving the address of the Authoritative NameServer.
Ex: It gives the address of the google.com servers.
Authoritative NameServer: This is the final nameserver in the DNS lookup process. It holds the actual DNS records for a specific domain, including the IP address associated with the domain name.