Networking, DNS & TLS
Ports and sockets: one IP, many services
How one server address can run a website, SSH and a database at once, and why starting a second copy of a service fails with 'Address already in use'.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Networking, DNS & TLS
- CIDR and subnets: reading /24, /16 and /32Beginner · 4 min
How to tell in ten seconds whether an address sits inside 10.0.1.64/26, and why a one-character slip in a firewall rule opens 256 addresses instead of one.
- The local network: MAC addresses, ARP, default gateway and routesBeginner · 5 min
Why a machine can reach its neighbour but not the internet, and the two small tables that decide where every packet goes first.
- TCP vs UDP: when each one is usedBeginner · 4 min
Why a video call tolerates lost packets while a file download repairs them, and how to see the difference with three lines of Python.
- DNS: why names exist and who answersBeginner · 5 min
The worldwide phone book that turns app.example.com into an address, who holds each page of it, and why so many outages turn out to be DNS.
- DNS record types: A, AAAA, CNAME, MX, TXT, NSBeginner · 5 min
What each line in a DNS zone means, which record to pick for a website, an alias and email, and the two small mistakes that quietly break them.
- dig, nslookup and /etc/hostsBeginner · 5 min
How to read a dig answer in ten seconds, and why dig can show a correct address while curl still reaches the wrong server because of one line in /etc/hosts.