Chapter 2 · 6 lessons · 669 min
Domains, Hosting & Going Live
The plumbing that turns your code into a real website.
Overview
Code without a URL is just files on your laptop. This chapter is the bridge from 'localhost' to 'a real address strangers can visit'. You'll understand domains, DNS records, hosting tiers, and how to ship a site without losing money or weekends.
What you'll learn
- How to pick a domain name that won't embarrass you in 2 years.
- The 6 DNS record types you'll actually use, with copy-paste examples.
- When to use static hosting, when to upgrade to a managed platform, and when (almost never) to run your own VPS.
- Why every site in 2026 should be HTTPS with a CDN — and how to get both for free.
Who this chapter is for
Builders ready to go live. Founders evaluating registrars and hosts. Anyone whose 'dev URL' looks like a Vercel preview link and is too embarrassed to share it.
Lessons in this chapter
All lessons are free and open — start anywhere, in any order.
- 1What is a Domain Name (Really)?TLDs, subdomains, registrars — explained without the jargon hangover.111 min
- 2DNS Records, DemystifiedA, CNAME, MX, TXT — the alphabet soup that points everything to everything.112 min
- 3Hosting: Where Your Site LivesStatic, serverless, VPS, managed — pick the right plate for the right meal.113 min
- 4Common Mistakes & How to Avoid ThemThe 5 traps beginners fall into when working on domains, hosting & going live — and the fix for each.111 min
- 5A Real-World WalkthroughA start-to-finish example of applying domains, hosting & going live to a real project you can copy.111 min
- 6Mental Models That Actually HelpThe 3 mental models we keep coming back to when things get hard in domains, hosting & going live.111 min
Glossary
Key terms used throughout this chapter.
- TLD
- Top-Level Domain — the suffix like .com, .my, .ai.
- Registrar
- A company licensed to sell domain names (Cloudflare, Namecheap, Porkbun).
- A record
- DNS entry pointing a domain to an IPv4 address.
- CNAME
- DNS entry pointing a domain to another domain (used for Vercel, Netlify, etc.).
- TTL
- Time To Live — how long DNS resolvers cache a record before re-checking.
- CDN
- Content Delivery Network — geographically distributed cache that makes assets fast worldwide.
- SSL/TLS
- Encryption that turns http:// into https:// — free via Let's Encrypt.
Try it yourself
Knowledge sticks when you use it. Do at least one of these before moving on.
- 01.Buy or transfer a domain to Cloudflare (it sells at cost — usually the cheapest).
- 02.Deploy a Hello World page to Vercel and point a subdomain at it via a CNAME record.
- 03.Set up SPF + DKIM for your domain so transactional email doesn't land in spam.
Further reading & sources
Primary, official sources we cross-checked against while writing this chapter.
