How DNS Resolution Works: From URL to Website
When you type a website URL into your browser, a process happens in milliseconds to connect you to the server.
Step by step process:
Step 1: User Enters URL
the desired domain is enteredStep 2: Browser Cache Check
Browser first checks if it already knows the IP address from a previous request then the process stops here.Step 3: OS Cache Check
If the browser does not have the record, the operating system checks its local DNS cache.Step 4: Query to DNS Resolver
If no cached result exists, the request is sent to a DNS resolver (ISP).Step 5: Resolver Queries Root Server
The resolver asks a root name server, The root server responds with the address of the TLD server for .com.Step 6: Resolver Queries TLD Server
The resolver then asks the .com TLD server, The TLD server responds with the authoritative name server for that domain.Step 7: Resolver Queries Authoritative Server
The resolver asks the authoritative server, The authoritative server responds with the correct IP address.Step 8: Response Returned to Client
The resolver sends the IP address back to your browser.Step 9: Browser Connects to Server
Now that the browser knows the IP address, it sends an HTTP/HTTPS request to the web server, and the website loads.
All these steps happen a few milliseconds but still a server can process request from all across the globe
Top comments (0)