What is DNS/How it works

Domain Name System is the resolver of domain name into ip address.
for example when you type google.com in your web browser DNS server searches it database that which IP address is given to google.com it will resolve/change it to 172.217.27.174

Google's home page opened

How DNS Works?
when you type x.com in your browser, first your browser and computer search it's own cache memory if it was not found it will send the request to resolver server which is your ISP (Internet Service Provider) the resolver server also checks it's memory to find the ip address assigned to x.com if it couldn't find the ip address, it will pass the query/request to the next level which root server
if root server has no idea about the ip address of x.com, it will direct the resolver to TLD server (Top Level Domain) which contains the information of top level domains like: .COM, .ORG, .NET

if the TLD also fails to fulfill the request of resolver for finding the IP address of x.com, it will direct it to the last level which is Authoritative Name Server.
The Authoritative name servers are the final destination and are responsible to know everything about a domain.
now TLD will tell your computer the ip of x.com and the webpage of x.com opens. The resolver or ISP will save the information of x.com in its database that in future if you or any other person requests this domain, it should go through all these steps.
Comments
Post a Comment