# Step 4: Buy a domain and put it on Cloudflare

> Pagebee Academy, part 1 (Set up). Buy the name, then run its DNS on Cloudflare's free plan. Cloudflare sells domains at cost, its DNS is free, and your agent can change it for you.

Time: 15 minutes, then up to a day to settle. Cost: The registry's price, usually $10 to $15 a year for a .com.

## Why it matters

Your domain is the one thing about your product people type. DNS is the phone book that tells the internet where that name points: your app, your email, your sign-in emails.

Cloudflare's registrar charges what the registry charges, with no markup and no renewal-price surprise in year two. Its DNS is free, and it has an MCP server (step 5), so your agent can add the records later steps need without you copying and pasting them.

## Do this

1. Make a free account at [dash.cloudflare.com/sign-up](https://dash.cloudflare.com/sign-up) and verify your email. You can't buy a domain until it's verified.
2. To buy a new domain: in the dashboard, open **Register domains**, search for your name and click **Purchase**. Choose how many years, check the contact details and complete the purchase. Auto-renew is on by default; leave it on.
3. Already bought one somewhere else? In the dashboard, choose **Onboard a domain**, type the domain (without www), pick the **Free** plan and check the records Cloudflare found. Make sure any email records (MX and TXT) came across.
4. Then, at the company you bought it from, turn off DNSSEC if it's on, and replace the nameservers with the two Cloudflare gave you. Cloudflare emails you when the domain is active, usually within a few hours and always within a day.

## Paste into Claude Code

```text
We'll use the domain tally.app for this product. Add a short section to the README called Infrastructure that records: the domain, that DNS is on Cloudflare, the Google Cloud project ID (ask me for it), and that the app will run on Cloud Run. Commit and push.
```

A README that records where everything lives is the cheapest documentation you'll ever write. Claude Code reads it at the start of every session.

## The trap: Paying for the domain twice

Many registrars sell a .com for $1 in year one and $20 or more from year two, and add paid privacy and DNS on top. Look at the renewal price before you buy. Cloudflare's renewal price is the same as its first-year price, and privacy is included.

## Using something else

Porkbun and Namecheap are fine registrars. Keep the domain wherever you bought it and point its nameservers at Cloudflare; you get the same DNS either way.

## Sources

- [Cloudflare Registrar](https://developers.cloudflare.com/registrar/)
- [Cloudflare: register a new domain](https://developers.cloudflare.com/registrar/get-started/register-domain/)
- [Cloudflare: add a domain](https://developers.cloudflare.com/fundamentals/manage-domains/add-site/)

Checked 24 November 2026. https://pagebee.ai/academy/domain
