Networking, DNS & TLS
SNI: many certificates behind one IP
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.
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
- 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.
- 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.