How do I buy a domain and connect it?
Buy the name from a domain registrar, turn on auto-renew and two-step verification, then point the domain's DNS at the service that hosts your site.
A domain is a name like yourname.com that you rent by the year from a registrar, a company allowed to sell domains. Before buying, compare the renewal price, not just the first-year price, check that privacy for your contact details is included, and pick a name that is easy to spell and say aloud.
Protect it, because losing a domain takes your site and your email with it:
- Turn on auto-renew and keep your payment details current.
- Use a strong password and two-step verification on the registrar account.
Connecting it works through DNS, the internet's address book. Records such as A, AAAA and CNAME tell browsers where your site lives, and changes can take time to spread because of caching, controlled by a setting called TTL. If your site runs on a Cloudflare Worker and the domain uses Cloudflare's DNS, you can attach it to the Worker as a Custom Domain: Cloudflare creates the DNS record for you and HTTPS comes with it. Decide whether visitors should land on yourname.com or www.yourname.com, and redirect the other one.
Vumbli's Domains, DNS & Going Live track covers choosing and buying a domain safely, DNS in plain English, connecting the domain to your Worker with automatic HTTPS, and a launch readiness check.
Start with these missions
- What you really buy when you buy a domain (Domains, DNS & Going Live)
- Check a domain name before you buy it (Domains, DNS & Going Live)
- Buy your domain the safe way (Domains, DNS & Going Live)
Tracks that teach it
More questions, answered by building