DNS & Web Browser Request
What happens if a web browser (client) sends a reqeust to a server?
- What is DNS (Domain Name System)?
- DNS resolves names domain names to IP addresses
- Steps that DNS takes:
- We try to access
yahoo.com
in our browser
- We try to access
- The browser (or your OS) checks its own cache memory for IP Address
- if not found, it sends the query to the resolver server
- The resolver server is basically your ISP (Internet service provider)
- Once it receives the query, it checks its own cache memory to find the IP address to
yahoo.com
- if not found, it sends the query to the resolver server
- if not found, it sends the query to the root server
- Root server is the top, or the root, of the DNS hierarchy
- 13 sets of these root servers strategically placed around the world
- operated by 12 different organizations
- each set has their own unique IP address
- when the root server receives the query for the IP address for
yahoo.com
, it is not going to know what the IP address is. But, it knows where to send the resolver to find the IP address. The root server will direct the resolver to the TLD (Top Level Domain server) server for the.com
domain - Top Level Domain Server stores the address information for top level domains such as
.com
,.net
,.org
etc.
- if not found, it sends the query to the root server
- TLD server is not going to know what the IP address for
yahoo.com
. So it will direct the resolver to the next and final level which are the Authoritative Name servers
- TLD server is not going to know what the IP address for
- The resolver asks the authoritative name server for the IP address for
yahoo.com
- Authoritative Name Servers are responsible for knowing everything about the domain including the IP address
- when it receives for the query from the resolver, the name server responds with the IP address for
yahoo.com
- The resolver asks the authoritative name server for the IP address for
- Finally, the resolver tells your computer the IP address for
yahoo.com
and your computer now can retrieve the web page foryahoo.com
- once the resolver receives the IP address for
yahoo.com
, it will store the IP address in its cache memory to prevent going through all these steps again
- once the resolver receives the IP address for
- Finally, the resolver tells your computer the IP address for
After the steps above…
- Then the browser requests passes through a Web Application Firewall
- Them the request passes through a Load Balancer
- Then it connects to the webserver on port 80 (http) or 443 (https)
- Then the web application talks to database
- Your browser renders the HTML into a viewable website
This post is licensed under CC BY 4.0 by the author.