Domains

How to Connect Your Domain to Cloudflare: Step-by-Step Guide

Learn how to connect any domain to Cloudflare in minutes by updating your nameservers at your registrar, regardless of where the domain is registered.

Abstract image of ethereal fiber optic strands cascading with glowing blue lights.

To connect your domain to Cloudflare you simply need to update the nameservers at your registrar and point them to the ones Cloudflare assigns you. Setup takes under 10 minutes; propagation completes within 1 to 24 hours.

This guide walks you through every step: creating the account, adding the domain, copying the nameservers, and confirming activation.

Why Connect Your Domain to Cloudflare?

Cloudflare sits between your visitors and your server. By routing your DNS through their network, you get — for free on the Free plan:

  • Global CDN that speeds up page load from any country.
  • Automatic DDoS protection at the network layer.
  • Free SSL/TLS with automatic renewal.
  • Basic Web Application Firewall (WAF).
  • Traffic analytics without installing anything on your server.

All of this works on the Cloudflare Free plan, which is more than enough for most small and mid-size websites.

Step 1: Create Your Cloudflare Account

Go to cloudflare.com and sign up with your email address. The free account requires no credit card.

Once inside the dashboard, click "Add a domain".

Step 2: Add Your Domain and Choose a Plan

Type your domain without www (for example: mybusiness.com) and press Continue.

Cloudflare will show the available plans. The Free plan works for most sites. Select it and continue.

Automatic DNS Record Scan

Cloudflare automatically scans your domain's current DNS records. Review the list before proceeding:

  • Confirm the A record points to the correct IP address of your hosting server.
  • Verify that MX records are present if you use email with that domain.
  • If you see records you don't recognize, research them before deleting.

You can add any missing records manually on this screen before moving on.

Step 3: Copy the Cloudflare Nameservers

After reviewing your DNS records, Cloudflare gives you two custom nameservers, for example:

Nameserver Example
NS1 chloe.ns.cloudflare.com
NS2 vic.ns.cloudflare.com

Copy both values exactly as they appear. You'll need them in the next step.

Step 4: Update Nameservers at Your Registrar

Log in to wherever you registered your domain (GoDaddy, Namecheap, Google Domains, etc.) and replace the current nameservers with the ones Cloudflare gave you.

In GoDaddy

  1. Go to My Products → Domains.
  2. Click the domain and select Manage DNS.
  3. Under Nameservers, click Change → Custom.
  4. Paste both Cloudflare nameservers and save.

In Namecheap

  1. Go to Domain List → Manage on your domain.
  2. Under the Nameservers section, choose Custom DNS.
  3. Enter both Cloudflare nameservers and click the green checkmark to save.

In cPanel / Your Hosting Panel

If your domain is registered directly with your hosting company, look for Name Servers or DNS Settings in your account panel. The process is the same: remove the current nameservers and add the two from Cloudflare.

Note: Do not change nameservers from inside the cPanel DNS Zone Editor. Nameserver changes are made at the registrar level, not on the server itself.

Step 5: Verify Activation in Cloudflare

Return to the Cloudflare dashboard. Your domain will show a "Pending" status until DNS propagation completes.

Expected wait times:

  • Minimum: 5–15 minutes at some registrars.
  • Typical: 1–4 hours.
  • Maximum: up to 48 hours in rare cases (if the previous TTL was very high).

When the domain goes live, the status changes to "Active" and you receive a confirmation email.

How to Verify Manually

From your terminal, run:

nslookup -type=NS yourdomain.com

If the response shows Cloudflare nameservers, propagation was successful.

Once active, review these options in the Cloudflare dashboard:

  • SSL/TLS → Full (strict): if your server already has a valid certificate, enable this mode for end-to-end encryption.
  • Speed → Auto Minify: automatically minifies HTML, CSS, and JavaScript.
  • Caching → Cache Level → Standard: enables CDN caching for static assets.
  • Security → Security Level → Medium: blocks suspicious traffic without affecting real visitors.

If you need help configuring your hosting to work correctly with Cloudflare, a web hosting specialist can guide you through the provider-specific steps.

Key Takeaways

  • Connecting a domain to Cloudflare only requires changing nameservers at the registrar — no server changes needed.
  • Cloudflare automatically scans and imports your existing DNS records when you add the domain.
  • Propagation takes anywhere from minutes to 24 hours depending on the previous TTL.
  • The Free plan includes CDN, DDoS protection, SSL, and basic analytics.
  • After activation, set SSL/TLS to Full or Full (strict) for maximum security.

Ready to launch your website with a professional domain? elenlace.com offers hosting plans ready to work with Cloudflare from day one — get started today.

FAQ

Can I use Cloudflare without changing my hosting provider?

Yes. Cloudflare only manages your DNS and acts as a proxy in front of your existing server. You don't need to migrate or switch hosting companies.

Will I lose email service when I change nameservers?

Only if MX records weren't migrated correctly. Before confirming the nameserver change, verify that Cloudflare detected all your MX records. If any are missing, add them manually in the Cloudflare DNS panel.

What does the orange cloud icon in Cloudflare mean?

The orange cloud means that record is proxied through Cloudflare (CDN + active protection enabled). A gray cloud means traffic goes directly to your server, bypassing Cloudflare. For CDN and DDoS protection to work, your A and CNAME records for the site must show an orange cloud.

Is the Cloudflare Free plan enough for a business website?

For most small and medium websites, yes. The Free plan includes CDN, SSL, basic DDoS protection, and traffic analytics. Paid plans add advanced WAF, priority support, and custom firewall rules.

Useful resources

Other providers and guides worth comparing:

← All