Day 01 Foundations

How the Internet Works

Trace exactly what happens when you type a URL and press Enter — every step from DNS lookup to rendered HTML.

~1 hour Hands-on Precision AI Academy

Today's Objective

Learn the core concepts of How the Internet Works and apply them in practical exercises.

01

The Full Request Journey

Most developers use the internet every day and can't explain how it works. This matters because understanding the journey helps you debug connection failures, DNS issues, and slow page loads.

The 7-step journey
The 7-step journey
1. You type: https://github.com
2. DNS lookup: 'What IP is github.com?'
   → Resolver queries root → TLD → authoritative DNS
   → Returns: 140.82.112.3
3. TCP handshake to 140.82.112.3:443
   → SYN → SYN-ACK → ACK
4. TLS handshake (HTTPS)
   → Exchange certificates
   → Agree on encryption
5. HTTP GET / request sent
6. Server processes request
7. HTTP 200 response with HTML
   → Browser parses HTML
   → Fetches CSS, JS, images
   → Renders the page
DNS in the terminal
DNS in the terminal
# See DNS resolution
dig github.com
nslookup github.com

# Trace the full DNS path
dig +trace github.com

# Check what DNS server you're using
cat /etc/resolv.conf
nscurl -s https://dns.google/resolve?name=github.com | python3 -m json.tool
💡
When a site won't load, your first question should be: 'Is this a DNS issue or a connection issue?' Run dig github.com. If it returns an IP, DNS is working. Then try curl -v https://github.com to test the connection.

Supporting References & Reading

Go deeper with these external resources.

MDN Web Docs
How the Internet Works HTTP reference and guides.
YouTube
How the Internet Works Networking fundamentals for developers
MDN
MDN Web Docs Comprehensive web technology reference

Day 1 Checkpoint

Before moving on, confirm understanding of these key concepts:

Continue To Day 2
Day 2 of the Networking for Developers course