INTERNET WEB NETWORKING DNS HTTP BROWSER

How the Internet Works — A Must-Know for Every Web Developer!

⏱️ 3 min read
👨‍💻

How the Internet Works — A Must-Know for Every Web Developer!

1. Introduction: Why Understanding the Internet Matters

Many developers are fluent in modern frameworks but clueless when things go wrong—why is the app slow? Why did the request fail?

Knowing how the internet works gives you the insight to debug effectively and build resilient systems.

🍳 Analogy: Don’t be a chef who can cook fancy dishes but doesn’t know how the stove or ventilation works.

2. How the Internet Works (Top Down)

a. User Types a URL

For example: https://blog.hasanh.dev

b. DNS Resolution

Try these tools:

dig blog.hasanh.dev
nslookup blog.hasanh.dev

📖 Analogy: DNS is the internet’s phonebook—translating names into numbers.

c. HTTP & HTTPS

3. Hosting & Servers

Server location affects latency—closer is faster.

4. Domain Name System & CDN

5. Browser: Rendering Engine & Dev Tools

Browsers turn HTML/CSS/JS into visual pages.

Rendering pipeline:

HTML → DOM
CSS → CSSOM
DOM + CSSOM → Render Tree → Layout → Paint

Key concepts:

Explore with Chrome DevTools:

6. Internet Flow Illustration

User → DNS Query → Get IP
→ TCP Handshake → TLS Handshake
→ HTTP Request → Web Server
→ HTTP Response → Browser Render

7. Practical Tips to Learn Internet Basics

Don’t just read—experiment!

Useful tools:

curl https://blog.hasanh.dev
ping blog.hasanh.dev
traceroute blog.hasanh.dev
dig blog.hasanh.dev

Try deploying to Vercel/Netlify and observe:

8. Conclusion

Understanding how the internet works is foundational for serious web development.

It strengthens your ability to scale, debug, and secure applications.

Modern web = coding + networking + system design.

🔗 Read more