How a page is fetched

Follow the path from you typing a URL to the finished page: browser, DNS, web server, then rendering.

Theory Beginner Internet · WWW ~8 min
The idea

Name first, then the files

People type a URL. Routers need a numerical IP address. The DNS (Domain Name Server) is the phone book that turns the domain name into that number.

After the browser has the IP address, it asks the web server for the page. The server sends HTML, CSS and images. The browser renders them into what you see. DNS does not store the page — only the address.

TipSix steps: URL → DNS query → IP back → HTTP request → files returned → render.
ExampleOne URL
address.txtURL
https://www.example.com/index.html

protocol   https://
domain     www.example.com
path       /index.html
IP (DNS)   203.0.113.10

HTTPS means the request and response are encrypted — same six steps.

Interactive

Run the simulation

You, the browser, the DNS entity and the web server. Arrows show each message as it travels.

Step 0 / 0
You · browser · DNS · serverdemo
Ready
Shortcuts: Space play/pause · → step · ← back · R reset
Try it yourself

Put the steps in order

Click steps from the pool to build the retrieval sequence. Click a chosen step to remove it.

Your order
Click to add
Ready
Place all six steps in the order they happen when a page is fetched.
Remember

Four roles

Who does what when a page is fetched.

You

Type the URL

You enter a human-readable address in the browser. You do not type the IP address.

Browser

Client software

Asks DNS for the IP, requests the page from the server, then renders HTML (and CSS, images) on screen.

DNS

Name → IP

Looks up the domain name and returns the matching IP address. It does not store the website files.

Web server

Holds the files

Receives the HTTP/HTTPS request and sends back the page files for the browser to display.