Back to guides

Add a domain to Cloudflare

Bring your domain onto Cloudflare by pointing its nameservers, so you can publish your landing pages on your own address with Workers.

Updated on June 24, 2026


To publish your landing pages on Cloudflare (with Workers), or to use your domain with Cloudflare in general, that domain must be managed by Cloudflare: in practice you point the domain's nameservers to Cloudflare. You do it once, it's free, and it takes just a few minutes.

💡 If your domain is already listed in your Cloudflare account, you're all set: you can skip this guide.

Before you start

You'll need:

  • A domain you've already registered (Namecheap, GoDaddy, Aruba, etc.).
  • Access to your registrar's panel where you bought it (to change the nameservers).
  • A Cloudflare account (free).

💡 Don't have a domain yet? You can register one on Namecheap: Create a domain

1

Add the domain to Cloudflare

  1. Go to dash.cloudflare.com and sign in (or sign up, it's free).
  2. Click Add a site and choose Connect a domain.
  3. Type your domain in the format yourdomain.comwithout http:// and without www — and continue.

Cloudflare's "Add a site" screen: choose "Connect a domain"
Cloudflare's "Add a site" screen: choose "Connect a domain"

2

Pick the Free plan

When Cloudflare asks for a plan, choose Free (at the bottom of the list): it's more than enough to serve landing pages. Confirm.

Cloudflare plan selection: choose "Free"
Cloudflare plan selection: choose "Free"

3

Check the DNS records

Cloudflare scans the domain's existing DNS records and shows them to you. Leave them as they are and click Continue.

⚠️ If you already had a site on that domain, make sure the main records (e.g. www, mail) are in the list before continuing.

4

Copy Cloudflare's 2 nameservers

Cloudflare shows you 2 nameservers (something like xxx.ns.cloudflare.com and yyy.ns.cloudflare.com). These are the key piece: they tell the world that Cloudflare now manages the domain.

The 2 nameservers assigned by Cloudflare, to copy into your registrar (redacted here)
The 2 nameservers assigned by Cloudflare, to copy into your registrar (redacted here)

5

Change the nameservers at your registrar

  1. Go to the site where you bought the domain (the registrar).
  2. Open the domain settings, Nameservers section (sometimes under "DNS" or "Name servers").
  3. Choose the custom nameservers option (Custom DNS / Custom nameservers).
  4. Delete the current nameservers and paste Cloudflare's 2 from Step 4.
  5. Save.

Namecheap panel with the "Custom DNS" option and Cloudflare's two nameservers entered
Namecheap panel with the "Custom DNS" option and Cloudflare's two nameservers entered

⚠️ Every registrar names this screen slightly differently, but the idea is always the same: replace the nameservers with Cloudflare's.

6

Wait for the domain to go "Active"

Go back to Cloudflare and click Check nameservers. From here:

  • The domain status will switch to Active — usually within minutes, sometimes a few hours.
  • You'll get a "Your domain is active" email from Cloudflare.

The domain Overview page on Cloudflare: "now protected by Cloudflare" = active domain
The domain Overview page on Cloudflare: "now protected by Cloudflare" = active domain

💡 Only once you see Active can you go ahead and publish a landing page. If it stays pending for hours, double-check you saved the right nameservers at the registrar (Step 5).

What's next?

Domain active on Cloudflare? Two steps are left, in this order:

  1. Connect the domain to RoyLead too (verification + activation), so your leads get attributed: How to connect a new domain
  2. Publish your landing page on this domain: Publish an HTML landing page on Cloudflare Workers

💡 Handy: the TXT record RoyLead asks for to verify the domain is added straight into Cloudflare's DNS, where you now manage the domain.

Ready to put this into practice?

Create your RoyLead account and start in minutes.

Get started free