How DNS Works Step by Step?
Last Updated :
19 Apr, 2024
Answer: DNS stands for Domain Name System and is the important element of internet that is used to match the domain names provided by users to a IP address of that domain.
Below is the working of DNS
Step 1: Query from client to DNS Server
When the client sends the request with the target domain name, the browser finds the website that is connected to the given domain name that will match the respective IP address.
Step 2: Translate the domain name to IP address
Recursive DNS server is the first place where the searches made by client are being translated into IP address. For this the resolver makes connections with various servers to get the correct answer .
Step 3: Search for the query using Root Name Servers
If the recursive servers don’t get any answers for the query, the work to get the query is done by the root servers. Root servers are the servers that can answer to any IP address related queries.
Step 4: Search for the query using TLD server
For searching the IP at next level Top Level Domain( TLD) servers are used. Recursive servers get the information about TLDs from the root servers.
Step 5: Request for full version of domain name by Authoritative DNS server
Authoritative DNS servers checks the request for the full version of the domain names to the servers that have information regarding the required domain name. These domain names are stored in the DNS servers.
Step 6: Recursive server needs to retrieve and store the record
The recursive server will retrieve the record of the domain from the target server and will cache these records. This steps helps each website to get loaded faster.
Step 7: Display the Website
The computer system when receives the records and stores them in its cache files, the IP address of respective domain name is told by the recursive resolver to the browser. The computer system will then read each IP address from the records and sends it to the browser.
Share your thoughts in the comments
Please Login to comment...