A Simple Guide to DNS Resolution Process
do u got an question in your mind how the actually google finds your request or websites,this question is common because there is lots of websites in internet so how google knows this exact which website to be displayed.
so here comes dns .
dns stands for domain name server its map ip address to its domain name of particular webite.
its like an phonebook of internet.
so how exactly browser find your website lets understand :
When you enter google.com in your browser, the browser does not know the IP address of google.com.
To find the IP address, the browser sends the request to a DNS resolver. The resolver takes the browser’s request and first contacts a Root DNS server.
The Root server tells the resolver that it should query the TLD (Top-Level Domain) server. There are many TLDs that classify domain names, such as .com, .in, .org, etc.
The TLD server then provides the address of the Authoritative DNS server. The Authoritative server is the server that holds the actual IP address of google.com.
This IP address is then returned to the browser. Using this IP address, the browser sends a request to the server and receives the website.

digcommand
When you type a website name like google.com in your browser, a lot happens behind the scenes to convert that name into an IP address. To understand and inspect this process, we use a tool called dig.
The dig command ( Domain Information Groper) is a command-line utility used to query DNS servers and fetch information about a domain. It shows how a domain name is resolved and which DNS servers are involved in the process.
When do we use the dig command?
The dig command is mainly used when you want to look inside the DNS system instead of just trusting that it works.
It is commonly used to:
Find the IP address of a domain name
Debug DNS-related issues when a website is not loading
etc
understanding dig . NS and root name servers
so here what is dot in between dig ,its represents root server , The top-most level of DNS,
its providing path of TLD server ,
ns ,its reprsent neming server, the actually holds ip address,and all info about that site.
so what meaning of whole command dig . NS.
this comands gies up the info about all 13 gloabal root server.

Understanding dig com NS and TLD name servers
TLD server are managing all domain under it. and knows the where is the authority server of that domain.
dig com NS
gives .com tld server ,if there some other domain like .in then list all about .in domain

Understanding dig google.com NS and authoritative name servers
authoritative server is the last stage of dns resolution ,its hold all dns information ,maintaining all records,
like A ,MX,TXT etc. and send retern back info od ip address of google.com

if you want an A record then type dig google.com A

Understanding dig google.com and the full DNS resolution flow
