惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
Martin Fowler
Martin Fowler
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
B
Blog
U
Unit 42
B
Blog RSS Feed
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
腾讯CDC
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
博客园 - 聂微东
MyScale Blog
MyScale Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
What Happens When You Type a URL in Your Browser?
Sreekari M · 2026-04-24 · via DEV Community

Sreekari M

You type a URL, hit Enter, and a webpage loads instantly.
But behind that simple action lies a complex chain of events involving DNS, networking, routing, and security mechanisms.

This article explains about how exactly the request sent from your computer in your LAN reaches the server and how the response is visible on your screen.

DNS Query

  1. User enters the URL in the browser.
  2. Browser checks it's own cache for the IP address.
  3. If not found, the OS DNS cache is checked.
  4. If still not found, the DNS query is sent to a recursive DNS resolver.
  5. The DNS resolver then checks its cache.
  6. If not found, the DNS resolution process begins.

In the DNS resolution process :-

  1. The DNS query reaches the DNS resolver and it checks its cache.
  2. If not found, it queries the Root DNS server.
  3. The Root DNS server points to the Top Level Domain(TLD) DNS server.
  4. The TLD DNS server then points out to the Authoritative server, where the IP address of the domain is found.
  5. The resolver caches the IP address and sends it back to the system.

DNS Query Resolution Process

  • The system now has the destination IP address.
  • It checks the routing table and decides to send the packet via the default gateway(router).
  1. System needs the MAC address of the router (next hop).
  2. It checks ARP cache.
  3. If not found, it sends ARP broadcast.
  4. Router replies with its MAC address.
  5. System creates the packet :-
  • Source IP = private IP
  • Destination IP = server IP
  • Destination MAC = router MAC

The packet is sent to the router.

  1. Router receives the packet.
  2. Router performs NAT (private IP to public IP).
  3. Router performs PAT and then assigns a unique port.
  4. Entry is stored in NAT/PAT table.
  5. The packet travels through internet via multiple routers.
  6. It Reaches the destination server.
  7. Server processes the request and sends response back to public IP + port.
  8. Router receives the response.
  9. Router checks NAT/PAT table.
  10. The router maps the public IP + port to the correct private IP + port.
  11. Router checks ARP cache for internal device MAC.
  12. If not found it then performs ARP.
  13. Router sends the packet to the correct device.
  14. Device receives the response.
  15. Browser processes and then finally renders the webpage.

DNS Resolution

Although this entire flow happens within milliseconds, it exposes multiple points where attackers can intercept, manipulate, or redirect traffic.

Potential Attacks :-

1. DNS Spoofing

Attacker returns a fake IP instead of the real one.
During DNS resolution, the user thinks they are visiting real site. Actually redirected to malicious server.

2. ARP Poisoning

Attacker sends fake ARP responses to become “router” during the ARP resolution in local network. The traffic gets intercepted
attacker becomes man-in-the-middle.

3. Man-in-the-Middle (MITM)

Attacker intercepts communication between client and server. During the data transmission the data can be read or modified.

4. Port Scanning

Attacker scans open ports before attacking before connection. The
attacker finds services like Port 22 (SSH), Port 80 (HTTP), Port 443 (HTTPS).

This process is not just about how systems communicate, but where they can fail. Each step in the flow represents a potential attack surface, making it critical to understand, monitor, and defend these points effectively.