Appearance

Language

Build a personal website from 0

Buy a Domain and Set Up DNS with Cloudflare, Plus Free Email Forwarding (2026)

Buy a domain from any registrar, point its nameservers to Cloudflare for free DNS, and receive mail at your own domain for free with Cloudflare Email Routing. Sending from that address needs a separate service such as Zoho Mail Free, iCloud+ or Google Workspace.

Kelvin Wang · · 8 min read

The whole setup costs only the domain; my .info domain was a little over US$10 for the first year and renews at US$21.20 a year. Your site attaches with Cloudflare Custom Domains, and Email Routing forwards mail for hi@yourdomain to your existing inbox. It only receives: sending from your domain needs a mail service with its own SMTP server.

PieceWhat to useCost (checked 2026-11-07)
DomainAny registrarDepends on the extension; mine was a little over US$10 the first year, US$21.20 a year to renew
DNSCloudflare Free planFree
Point the site at the domainCloudflare Workers Custom DomainsFree, HTTPS certificate included
Receive mailCloudflare Email RoutingFree
Send mailZoho Mail Free / iCloud+ / Google WorkspaceFree / from US$0.99 a month / from US$7 per user a month

Sources at the end. Prices change; check the provider before paying.

Three things to understand first: domain, DNS, email

  • A domain is your site’s name, such as kelvinwang.info. You don’t own it outright. You rent it yearly from a registrar and renew it, or it’s released for someone else to register.
  • DNS is the domain’s phone book: it records which server a name points to. The service that answers DNS queries is the nameserver. Your registrar gives you its own nameservers when you buy, and you can switch to another provider such as Cloudflare.
  • DNS records are the entries in that phone book. The common ones:
RecordWhat it doesExample
A / AAAAPoints a name at an IPv4 / IPv6 addressexample.com → 192.0.2.1
CNAMEPoints one name at another nameblog.example.com → example.netlify.app
MXTells the world which mail server receives your domain's mailYour mail provider gives you the values
TXTHolds verification codes and sending authorization (SPF, DKIM)Google Search Console verification, v=spf1 ...

On Cloudflare, most of these are created for you when you attach a site or turn on Email Routing, so you’ll rarely type one in by hand.

Step 1: pick a name and an extension

Keep the name short, easy to spell and easy to say out loud. For a personal site, your own name is the usual choice.

On extensions (TLDs): .com is the most familiar, and most good names are taken. Newer or less crowded extensions such as .info, .me or .dev make it easier to find the name you want. I bought kelvinwang.info on Cloudflare Registrar. I compared extensions in its search for a while, and .info had the cheapest first-year price for my name, a little over US$10. The dashboard shows a renewal price of US$21.20 a year, which is what I pay from year two, so compare renewal prices (Why Is My Domain Renewal So Much More Than the First Year?).

Before you buy, check:

  • The renewal price. Many registrars discount the first year and charge full price after that.
  • WHOIS privacy, and whether it’s free.
  • Auto-renew. Turn it on and keep the card up to date. A domain that lapses and gets registered by someone else is very hard to get back.
  • Whether you can change nameservers. Almost every registrar allows it; a few bundles tie you to their own hosting.

Step 2: buy the domain

Cloudflare Registrar

If your site will live on Cloudflare, buying the domain there is the least work:

  • No markup. Cloudflare says registration, transfer and renewal prices are at or below what registries and ICANN charge it 1.
  • DNS is on Cloudflare automatically. Domains registered with Cloudflare Registrar always use Cloudflare nameservers; you can’t switch to another DNS provider while the domain is there 2.
  • WHOIS details are redacted by default, and auto-renew is on by default 3.
  • Limits: no internationalized (non-ASCII) domain names, and your account email must be verified first 2. Not every extension is available; Cloudflare publishes the list of supported TLDs 4.
  • Verify the registrant email after buying. ICANN requires it. If the address isn’t verified, or the verification lapses, the domain is put on hold and its nameservers are swapped for parking ones, which takes your site offline until you verify 2.

To buy: Register domains in the dashboard → search → Purchase → choose a term (up to ten years for most TLDs) → enter contact details (ASCII characters only) → payment → Complete purchase 2.

Another registrar

Buying elsewhere is fine too. You’ll move DNS to Cloudflare in the next step, and the domain itself stays with that registrar.

Step 3: move DNS to Cloudflare

If you bought the domain from Cloudflare Registrar, this is already done; skip to step 4.

For a domain bought elsewhere:

  1. Sign up for Cloudflare, choose Onboard a domain and enter the domain (without www).
  2. Choose the Free plan.
  3. Cloudflare scans your existing DNS records and imports them. The scan isn’t guaranteed to find everything 5. If the domain is already in use (for example, it already has email), compare against your registrar’s DNS settings and add anything missing.
  4. Cloudflare assigns two nameservers that look like xxx.ns.cloudflare.com.
  5. If DNSSEC is on at your registrar, turn it off first, or the domain will stop resolving after the switch 5.
  6. At your registrar, replace the nameservers with the two Cloudflare gave you, copied exactly.
  7. Wait up to 24 hours. Cloudflare emails you when the domain is active, and its status changes to Active 5.
  8. Once it’s active, you can turn DNSSEC back on through Cloudflare.

Step 4: point the domain at your site

If your site runs on Cloudflare Workers, go to Workers & Pages → your Worker → Settings → Domains & Routes → Add → Custom Domain, and enter example.com. Cloudflare creates the DNS record and the HTTPS certificate for you, so there’s no A record to type in 6.

Two things people miss:

  • www needs its own setup. A Custom Domain matches the exact hostname only 6, so add www.example.com separately or redirect it to the main domain. On my site, www and plain http both 301 to https://kelvinwang.info.
  • The hostname can’t already have a CNAME record. Delete it first 6.

If your site is hosted elsewhere (Vercel, Netlify, GitHub Pages and so on), add the A or CNAME record that platform tells you to in Cloudflare DNS.

Go deeper Cloudflare Workers Tutorial 2026: Astro SSR and Wrangler From creating the project and deploying for free to attaching your domain.

Step 5: receive mail at your domain for free (Cloudflare Email Routing)

Email Routing forwards mail sent to your domain to an inbox you already have, for example hi@example.com to your Gmail. It’s available on the Free plan 7. It handles receiving only.

Requirement: the domain’s DNS has to be on Cloudflare 8.

Setup 8:

  1. In the dashboard go to Email Service → Email Routing → Onboard Domain and pick your domain.
  2. Cloudflare adds three kinds of records: MX (sends mail to Cloudflare), an SPF TXT record (authorizes Email Routing to forward for your domain) and a DKIM TXT record (signs forwarded mail). Confirm to add them.
  3. Under Destination Addresses, add the inbox that should receive the mail (your Gmail, say), and click the link in the verification email Cloudflare sends there.
  4. Under Routing rules, create a rule: hi@example.com → your Gmail. You can also turn on catch-all to forward every address that has no rule.
  5. Send a test message to hi@example.com from another account. DNS changes usually take 5 to 15 minutes 8.

Limits: up to 200 rules per domain, up to 200 destination addresses per account, and 25 MiB per message including attachments 9. Each rule forwards to one address or one Worker; sending one address to several people takes a Worker 9.

Step 6: send mail from your domain

Email Routing can’t send as hi@example.com. For that you need a mail service with its own SMTP server.

ServiceCostWatch out for
Zoho Mail FreeFreeUp to 5 users, 5 GB each, one domain; no IMAP/POP, so web and Zoho's own apps only; offered only in some data centers
iCloud+ Custom Email DomainiCloud+ from US$0.99 a month (50 GB, US price)Needs iCloud+ and two-factor authentication; up to 5 domains and 10 addresses per domain; send and receive in iCloud Mail
Google Workspace Business StarterFrom US$7 per user a month (annual plan, before tax)The full Gmail interface and a Google account at your domain; suits long-term use or a team
Cloudflare Email SendingRequires the Workers Paid planBeta. For transactional mail sent by code (notifications, sign-in codes), not a personal mailbox

Zoho Mail pricing [12], iCloud+ Custom Email Domain [13], iCloud+ US prices [14], Google Workspace pricing [15], Cloudflare Email Service [7]; checked 2026-11-07.

My own domain email runs on Google’s service; I didn’t set up an SMTP server myself.

A few things to know:

  • With one of these services you don’t need Email Routing. Zoho, iCloud+ and Google Workspace each give you their own MX records and receive mail directly. Email Routing suits people who only want to receive and don’t want another mailbox. The MX records conflict, so a domain uses one or the other.
  • Only one SPF record per domain. The SPF specification forbids multiple SPF records on one domain 10. When you switch from Email Routing to another service, or use two sending services, merge them into a single line (for example v=spf1 include:A include:B ~all) instead of adding a second record.
  • Add DKIM as your provider instructs. Each one gives you a DKIM TXT or CNAME record. Without it, your mail is more likely to land in spam.
  • Gmail’s “Send mail as” can use another provider’s SMTP server so you send from your domain inside Gmail. But Google’s help page says that from January 2027 Gmail will stop supporting “Send as” for third-party addresses. It only names @yahoo.com and @outlook.com as examples and doesn’t say whether custom domains are affected 11. If you’re setting things up now, don’t build on it.

FAQ

What happens if my domain expires? Your site and email stop working, and after the grace period someone else may register the name. Keep auto-renew on and update your card when it changes.

After moving DNS to Cloudflare, is the domain still with my old registrar? Yes. Changing nameservers only hands DNS to Cloudflare. Registration, renewal and billing stay with the registrar. Moving the registration too is a separate process called a transfer.

Email Routing receives fine, but my replies come from my Gmail address. Why? That’s expected: Email Routing only receives. To reply from your domain, use a sending service from step 6.

How much does a domain cost? It depends on the extension and the registrar. My .info domain was a little over US$10 for the first year and renews at US$21.20 a year. With Cloudflare DNS and Email Routing free, the domain is the smallest fixed cost of a personal website.

Go deeper How Much Does a Personal Website Cost in 2026? A US$250 Example Budget, Line by Line Domain, hosting, database and AI tools, item by item.

Sources

  1. 1. Cloudflare Registrar · Cloudflare · checked 2026-11-07
  2. 2. Register a new domain · Cloudflare Docs · checked 2026-11-07
  3. 3. Cloudflare Registrar docs · Cloudflare Docs
  4. 4. TLD policies · Cloudflare
  5. 5. Change your nameservers (Full setup) · Cloudflare Docs
  6. 6. Custom Domains · Cloudflare Docs
  7. 7. Cloudflare Email Service · Cloudflare Docs · checked 2026-11-07
  8. 8. Enable Email Routing · Cloudflare Docs
  9. 9. Email Routing limits · Cloudflare Docs
  10. 10. RFC 7208: Sender Policy Framework (SPF), section 3.2 · IETF
  11. 11. Send emails from a different address or alias · Gmail Help · checked 2026-11-07
  12. 12. Zoho Mail pricing · Zoho · checked 2026-11-07
  13. 13. iCloud+ Custom Email Domain · Apple · checked 2026-11-07
  14. 14. iCloud+ US prices · Apple · checked 2026-11-07
  15. 15. Google Workspace pricing · Google · checked 2026-11-07

About the author

Kelvin Wang

Electrical engineer building tools with AI agents, sharing hands-on notes on engineering and investing.

More about me