Track
Networking, DNS & TLS lessons
64 short lessons on Networking, DNS & TLS. Each one starts from a real situation, shows how it works, and ends with a quiz. Free to read.
All 64 lessons
- Networks, clients and servers: LAN, WAN and the internetBeginner · 5 min
Why copying a file across the office takes two seconds while opening a page in another country takes a full second, and the two numbers that explain it.
- IP addresses: IPv4, private ranges and localhostBeginner · 4 min
Four numbers that say whether a machine is reachable from the internet, only from inside, or only from itself, and what a 169.254 address means.
- 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.
- Ports and sockets: one IP, many servicesBeginner · 5 min
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'.
- 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.
- HTTP: requests, methods, status codes and headersBeginner · 5 min
What a request and a response actually contain, and how three digits tell you whether to look at the client, the proxy or the app.
- HTTPS and TLS: what the padlock provesBeginner · 5 min
What the browser actually checks before it shows a padlock, what a certificate contains, and why a valid padlock does not mean a site is trustworthy.
- NAT: how private addresses reach the internetBeginner · 5 min
How forty laptops with private addresses share one public IP, why nothing outside can start a connection to them, and what carrier-grade NAT changes.
- ping and traceroute: is it reachable, and where does it stop?Beginner · 5 min
A one-minute method for deciding whether a failure is your laptop, your gateway, a router halfway, or the far server, and why a failed ping is not proof of anything on…
- curl: send an HTTP request and read the answerBeginner · 5 min
One command that shows DNS, the TCP connection, TLS and the HTTP exchange in order, and how its exit codes point at the layer that failed.
- ss: who is listening on which port?Beginner · 5 min
How to tell in ten seconds whether a service is really listening, on which address, and which process owns the port.
- SSH: logging in with key pairsBeginner · 5 min
How a key pair lets you log in without a password, where each half of the key lives, and the three-item checklist behind 'Permission denied (publickey)'.
- What happens when you type a URLBeginner · 5 min
The most-asked networking interview question as one story: DNS, routing and NAT, TCP, TLS and HTTP in order, with the failure signature of each stage.
- Subnet planning: carve a /16 into /24s and /26sBeginner · 5 min
How to spend a /16 so that the load balancer, the app tier and a future partner network all fit, and why the plan has to exist before the first subnet does.
- Routing tables, next hop and longest prefix matchBeginner · 5 min
Why a stopgap route for one /24 quietly steals traffic from a /16, and how to ask the kernel which route a packet will take before you send anything.
- TCP states: ESTABLISHED, TIME_WAIT and CLOSE_WAITBeginner · 5 min
Read the State column of ss like a thermometer: TIME-WAIT in the thousands is usually the protocol working, while a few dozen growing CLOSE-WAIT sockets are a bug in…
- tcpdump: capture and read packetsBeginner · 5 min
Settle 'is the packet even leaving this host?' in one command, and learn to read the three flag letters that tell you whether the other side answered.
- Authoritative DNS: NS delegation, SOA and registrarsBeginner · 5 min
The Intern stage showed who answers a DNS query. This lesson shows who is allowed to, and why identical records in the wrong place change nothing.
- Debugging DNS: dig +trace, resolv.conf and systemd-resolvedBeginner · 4 min
Why dig says one thing and your application does another: the search list, ndots and the 127.0.0.53 stub sit between them, and Kubernetes pods make all three matter.
- The TLS 1.3 handshake step by stepBeginner · 5 min
What the client and server actually say to each other in the one round trip before any HTTP is sent, which parts an eavesdropper can read, and which message proves the…
- The TCP three-way handshakeBeginner · 5 min
What happens in the first round trip of every TCP connection, and why 'connection refused' and 'timed out' point at different problems.
- Congestion controlBeginner · 5 min
Congestion control adjusts sending rate according to network feedback.
- MTU and path MTU discoveryBeginner · 5 min
Why ssh and small requests work while a 20 KB upload hangs forever, and the one ICMP message whose loss causes it.
- UDPBeginner · 5 min
UDP sends datagrams without connection reliability.
- How a name is resolved: stub, recursive, root, TLD, authoritativeBeginner · 5 min
The exact trail from a program's question to an answer, why the first lookup takes 118 ms and the second takes none, and how to see each hop with dig.
- TTL and DNS cachingBeginner · 5 min
Why 40% of traffic still hits the old load balancer half an hour after you changed a record, what 'propagation' really is, and how to plan a DNS change.
- CNAME rules and the zone apex problemBeginner · 5 min
Why swapping the bare domain's A record for a CNAME to a CDN breaks mail within minutes, and the three ways to point a bare domain at a hostname without breaking it.
- Negative caching: why a new name stays NXDOMAINBeginner · 5 min
A resolver remembers 'this name does not exist' as carefully as it remembers a good answer. That is why creating the record is not the same as being able to resolve it.
- Certificate chains and intermediate CAsBeginner · 4 min
Chrome loads the site, Java refuses it. The server sent one certificate when the clients needed two, and only some clients quietly fix that for you.
- SNI: many certificates behind one IPBeginner · 5 min
How one IP address presents the right certificate for 300 customer domains before the HTTP request exists, and why curl against the bare IP gets the wrong one.
- mTLSBeginner · 4 min
mTLS authenticates both client and server certificates.
- Certificate expiry and renewal with Let's EncryptBeginner · 5 min
A certificate renewal that succeeded on disk and still caused an outage, and the three checks that would have caught it before the 03:00 pager.
- Reverse proxy: nginx in front of an appIntermediate · 5 min
A 504 at exactly 60 seconds and an app that sees every user as 127.0.0.1: both come from what a reverse proxy changes on the way through.
- L4 load balancing: TCP-level balancing and idle timeoutsIntermediate · 5 min
Balancing connections instead of requests: why idle database connections die after exactly 10 minutes, and why every backend suddenly sees the balancer's address.
- L7 load balancing: host and path routingIntermediate · 5 min
How a balancer that reads the request picks a backend by host and path, and the two ordering rules, one in nginx and one in AWS, that send a request to the wrong place.
- OSI and TCP IP layersBeginner · 4 min
Explain the TCP/IP layers and the header each one adds, so a connection fault can be tied to the link, IP, transport or application layer with a short test at each step.
- Ethernet frames and ARPIntermediate · 4 min
Explain how Ethernet frames carry MAC addresses and how ARP maps an IPv4 address to a MAC address on one segment, including its cache and its replies.
- IPv4 subnettingIntermediate · 4 min
Explain how a prefix length splits an IPv4 address into network and host parts, and how a host uses its mask to decide whether a destination is local or behind the…
- IPv6 addressingIntermediate · 4 min
Explain how IPv6 addresses are written in full and compressed form, what the three address types are, and why a copied address must be checked against the interface.
- Routing tablesIntermediate · 4 min
Explain how a routing table picks the longest matching prefix, what route types and proto fields show, and how to ask the kernel which route a destination uses.
- Policy routingIntermediate · 4 min
Explain how policy rules run in priority order and select a routing table by source address or fwmark, so a host with two uplinks sends replies out the right link.
- NAT and PATIntermediate · 4 min
Explain how NAT and PAT rewrite addresses and ports through a binding table, why inbound access needs a static mapping, and why idle bindings can expire while the link…
- Conntrack table exhaustionIntermediate · 4 min
Explain how the conntrack table tracks each flow, why its timeouts decide how many entries stay, and how to tell a full table from a CPU or memory limit.
- TCP three way handshakeIntermediate · 4 min
Explain the TCP three-way handshake and what each SYN, SYN-ACK and ACK packet carries, and how a one-second pause before a connection can point to a lost SYN.
- TCP retransmissionAdvanced · 4 min
Explain how TCP computes its retransmission timeout from round-trip time and its variation, doubles it after each timeout, and how to measure loss before tuning anything.
- UDP behaviorAdvanced · 4 min
Explain what the UDP header contains and what UDP leaves out, such as acknowledgement and retransmission, and how to find datagrams dropped silently at a full receive…
- DNS recursive resolutionAdvanced · 4 min
Explain how a recursive resolver follows referrals from the root to the zone's name servers and caches each step, and how to find the slow step with dig.
- DNS caching and TTLAdvanced · 5 min
Explain how a TTL limits how long a cache keeps a record, why each cache counts down its own copy, and why a DNS change takes up to the old TTL to reach everyone.
- Split horizon DNSAdvanced · 4 min
Explain how split-horizon DNS gives different answers for one name, depending on the resolver and the network a client uses, and how to check which view a client gets.
- DNSSECAdvanced · 4 min
Explain how DNSSEC signs DNS data with RRSIG and DNSKEY records, how the DS record links a zone to its parent, and why it provides integrity but not confidentiality.
- TLS handshakeAdvanced · 5 min
Explain how a TLS 1.3 handshake sets up keys and checks the server's certificate, and use SNI and openssl s_client to find where a connection fails.
- Certificates and PKIAdvanced · 4 min
Explain how a certificate chain links a leaf certificate to a trusted root, and check a chain with openssl before a CA rotation goes live.
- HTTP1 keep aliveAdvanced · 4 min
Explain how HTTP/1.1 keeps connections open for reuse, and why a client idle limit longer than the server's causes reset errors after quiet periods, so you can check…
- HTTP2 multiplexingAdvanced · 4 min
Explain how HTTP/2 sends many streams over one TCP connection, and why one lost packet can stall all of them on a lossy link, so you can read stream limits and…
- HTTP3 and QUICAdvanced · 4 min
Explain how HTTP/3 carries HTTP over QUIC on UDP, and how a blocked UDP port causes a slow first load before the client falls back to TCP.
- Reverse proxy routingAdvanced · 4 min
Explain how nginx chooses a location block and what proxy_pass does to the path, so routes and upstream requests match what you intend and what each upstream receives.
- L4 versus L7 load balancingAdvanced · 4 min
Explain how layer 4 and layer 7 load balancers choose targets, why a network balancer cannot route by URL path, and when connection-level balancing spreads load unevenly.
- BGP fundamentalsAdvanced · 4 min
Explain how BGP passes routes between networks with AS_PATH attributes, and how a valid session can still send traffic over a longer path after a policy change.
- tcpdump and packet capturesAdvanced · 4 min
Explain how tcpdump filters, snap length and saved captures show what crossed one interface, and how to read a reset and an idle gap from a capture file.
- Split horizon DNS: operational verificationAdvanced · 4 min
Explain how split-horizon DNS uses views to give one name different answers to different networks, and how to verify each view's answer, serial and TTL after a change.