A brass drawing compass open on a folded chart, a corner label reading SEO
Being found3 min read

Connect my domain when I manage it at Cloudflare

There is a short film of this. Three records and one redirect - a minute or two, no sound needed, showing the whole thing on a real site.

The prompt

“My domain’s DNS is managed at Cloudflare. Walk me through adding the records to connect [my domain] to my bernard site, including the redirect for the bare domain and which records should be proxied, and check whether they’re working yet.”

Signed in, Get my prompt fills in your site for you. Otherwise press Copy and fill in the [bracketed] parts. First time? Connect your AI to bernard once: Use your own AI (opens in a new tab).

Connecting a Cloudflare-managed domain comes down to four things: three DNS records and one redirect. Bernard’s Custom domain page (open your site, then Custom domain) shows the exact values for your address - keep it open beside the Cloudflare dashboard and copy each one across. (New to connecting a domain generally? Start with connecting your own domain - this page adds the Cloudflare-specific part.)

You can also Connect Cloudflare to bernard without giving it control of my DNS with Zone Read. That lets bernard confirm that this exact domain is visible in the Cloudflare account you choose. If a later migration inventory needs to read the existing record list, bernard asks the account owner separately for DNS Read. Neither permission can edit the records below, so you still add or change them yourself.

The three DNS records

In Cloudflare: your domain → DNS → Records → Add record.

  1. Your site’s address - a CNAME named www pointing at customers.bernardhosts.com. Set its cloud to grey (“DNS only”).
  2. Proof of ownership - a TXT record; paste the name and code exactly as bernard shows them.
  3. The padlock helper - a small record that keeps your security certificate renewing itself. Cloud grey on this one too.

Leave every other record - your email, anything else you use - exactly as it is.

The redirect for your bare domain

People who type your address without the www need to end up on your site too.

How much it matters depends on your old site. bernard serves your site at the www address. If your old site lived at the bare address (no www), that is the address Google knows. The redirect then tells Google that every old page has moved to the same page at www, and your ranking moves with it. Without the redirect, Google sees your old site and your new one as two different sites. If your old site already used www, Google knows the right address and the redirect is for people who type the short version. The Custom domain page checks your old site and says which case you are in.

At Cloudflare it takes two steps:

  1. Turn the bare domain’s cloud orange. In DNS → Records, find the A record named with your bare domain (it may show as @). Click Edit, switch Proxy status to the orange cloud, and save. Cloudflare only runs a redirect for records it proxies, so with a grey cloud the redirect saves but nothing happens. If there is no record for the bare domain, add one: Type A, Name @, IPv4 address 192.0.2.1, orange cloud on.
  2. Add the redirect. Go to Rules → Overview → Create rule → Redirect Rule. If Cloudflare offers the template “Redirect from root to WWW”, pick it and deploy. Otherwise: when Hostname equals your bare domain, redirect with type Dynamic to concat("https://www.yourdomain", http.request.uri.path), status code 301, and tick Preserve query string.

To check, open your bare domain with a page on the end (for example yourdomain/contact/) in a private window. It should land on the same page at www.

So the clouds are simple: orange on the bare domain, grey on everything you add for bernard.

What the switch-over looks like

Allow 15–30 minutes end to end. Bernard checks your records and moves you over automatically - no button to press. Around fifteen minutes in you may briefly see a “site not available” page on your domain; that’s the middle of the handover, not a mistake. Roughly ten minutes later your site is live at your own address.

If it’s still stuck after half an hour, ask bernard to check my domain - it walks every step from your records to the live site and tells you which one is waiting, in plain English.

Questions people ask

Which records get the orange cloud, and which don’t?
The record for www and the certificate helper must be grey (‘DNS only’) - bernard serves your site through its own secure route, so Cloudflare just passes visitors along. The bare-domain record is the opposite: it must be orange, because Cloudflare only runs a redirect for records it proxies. If yours is grey, click Edit and switch it to orange. With a grey cloud the redirect saves but never runs.
Do I need the bare-domain redirect, or is it optional?
It depends on which address your old site used. If your old site lived at your address without the www, that is the address Google knows, and the redirect is what moves your Google ranking to the new site. Without it Google sees two different sites. If your old site already used www, your ranking is safe and the redirect is for people who type the short version. Bernard’s Custom domain page checks your old site and tells you which case you are in.
I see an error page saying 1014 or ‘Cross-User Banned’.
Usually the www record has been left orange. Open it in Cloudflare’s DNS page, click the cloud so it turns grey, and give it a few minutes. If the cloud is already grey and the error stays, the address may have pointed somewhere else for more than a week after it was connected, and Cloudflare then stops recognising it for bernard. That does not fix itself by waiting: point the record back to your old site for now and ask Bernard to report it, so the team can renew it before you switch again.
I saw ‘site not available’ partway through - did I break something?
No - that’s the normal middle of the switch-over. Around fifteen minutes in, your domain can briefly show ‘site not available’ while the handover completes; roughly ten minutes later it’s live. Bernard runs the checks and switches you over automatically, and it never changes your live site without your approval - the switch-over simply completes the connection you asked for.
Will this affect my email?
How you receive email is never touched. Your MX and email records at Cloudflare stay exactly as they are - you’re only adding the new records bernard shows you, not changing existing ones.

Next