🌐 What Happens When You Type a URL in the Browser?

What Happens When You Type a URL in the Browser?

When you type a website like xxxxggg.com in your browser, a lot of steps happen behind the scenes in milliseconds.

Your browser does not directly understand domain names.
It needs to convert the domain into an IP address and then communicate with the server.

Step 1: Browser Checks Cache

The browser first checks if it already knows the IP address.

  • Browser cache
  • OS cache

If found → skip DNS lookup

Step 2: DNS Resolution

If the IP is not cached:

Browser → /etc/resolv.conf → DNS server

The DNS server returns:

xxxxggg.com → 142.x.x.x

Step 3: TCP Connection

Now the browser connects to the server using the IP address.

Browser → Server IP (Port 80 or 443)

This uses TCP (a reliable connection).

Step 4: TLS Handshake (HTTPS only)

If the site uses HTTPS:

  • Browser verifies SSL certificate
  • Secure connection is established
This step ensures the communication is encrypted and safe.

Step 5: HTTP Request

The browser sends a request:

GET / HTTP/1.1
Host: xxxxggg.com

Step 6: Server Processing

The server receives the request and processes it:

  • Fetch data
  • Run backend logic
  • Prepare response

Step 7: HTTP Response

The server sends back:

HTML + CSS + JavaScript

Step 8: Browser Renders Page

The browser:

  • Parses HTML
  • Loads CSS
  • Executes JavaScript

Finally, the webpage is displayed πŸŽ‰

Full Flow Summary

You type xxxxggg.com
        ↓
DNS lookup → get IP
        ↓
TCP connection
        ↓
TLS handshake (HTTPS)
        ↓
HTTP request
        ↓
Server response
        ↓
Browser renders page

Final Takeaway

Opening a website involves multiple steps: DNS → Connection → Security → Request → Response → Rendering

Popular posts from this blog

☁️ AWS Global Accelerator (GA) + Route 53

🐳 Docker Filesystem Internals (AdvancEd)

Understanding RabbitMQ Classic Mirrored Queues and Quorum Queues

🐳 Docker Tutorial for Beginners: Step-by-Step with a Simple Example

☸️What’s Inside EKS? A Beginner’s Guide to Its Core Components

☸️ Kubernetes Taints and Tolerations(with Node Affinity)

AWS Load Balancer Controller Upgrade Guide: v2.x to v3.3

🐳 Build a Tiny Flask Web App in Docker (with Ports)

☁️ Amazon S3 Explained: More Than Just Object Storage

☸️ CoreDNS and AWS VPC CNI in EKS