Add Domains Cloudflare? Setup & DNS Guide
To add a domain to Cloudflare, you sign up (or log in), click Add a site, enter your domain, choose a plan (the free plan is fine for most), and then replace your domain’s nameservers at your registrar with the two nameservers Cloudflare gives you. Once the nameservers propagate, Cloudflare acts as your DNS provider and reverse proxy, handling traffic for your domain. This article explains the full process, what happens behind the scenes, and common pitfalls to avoid.
What Does Adding a Domain to Cloudflare Actually Do?
When you add a domain, Cloudflare becomes your authoritative DNS provider. That means your domain’s DNS records (A, CNAME, MX, TXT, etc.) are managed in the Cloudflare dashboard instead of at your registrar or old hosting provider. Cloudflare also sits in front of your web server as a reverse proxy, so all requests to your domain first hit Cloudflare’s network, which can cache content, block malicious traffic, and optimize delivery. For most people, the main benefits are:
- Faster load times via a global CDN and caching.
- DDoS protection and a web application firewall (WAF) on paid plans.
- Free SSL/TLS certificates (no more manual certificate renewal).
- Simplified DNS management in one place.
Prerequisites Before You Start
Before adding your domain, make sure you have:
- Access to your domain registrar (e.g., Namecheap, GoDaddy, Google Domains) to change nameservers.
- Your current DNS records handy, especially MX records for email. You can export them from your current provider or note them down.
- A valid domain – Cloudflare does not sell domains; you must already own one.
If your domain is currently in use (website, email), don’t worry – the process is designed to be non-disruptive if you follow the steps correctly.
Step-by-Step: How to Add Your Domain
- Create a Cloudflare account at cloudflare.com (free).
- Click Add a site and enter your domain (e.g.,
example.com). - Select a plan – the Free plan is sufficient for most personal and small business sites.
- Cloudflare will scan your existing DNS records. Review them carefully – make sure all critical records (like MX for email) are present. You can add or edit records later.
- Cloudflare will show you two nameservers (e.g.,
ada.ns.cloudflare.comandben.ns.cloudflare.com). Copy these. - Go to your domain registrar’s website, find the DNS/nameserver settings, and replace the current nameservers with the two Cloudflare ones. Save the changes.
- Return to Cloudflare and click Done, check nameservers. Propagation can take from a few minutes to 24 hours (usually under an hour).
Once Cloudflare confirms the nameservers, your domain is active. You’ll receive an email confirmation.
What Happens After You Change Nameservers?
Changing nameservers tells the global DNS system that Cloudflare is now the authority for your domain. This change propagates across the internet gradually. During propagation, some visitors may still see your old DNS, while others see the new one – that’s normal. Once propagation completes, all DNS queries for your domain go to Cloudflare, which then resolves them according to the records you’ve set. If you have a website, Cloudflare will proxy your traffic (orange cloud icon) by default, which enables its CDN and security features. You can toggle the proxy off for individual records (gray cloud) if you need to bypass it for troubleshooting.
Common Problems and How to Avoid Them
- Email stops working – Usually because MX records were not copied correctly. Always double-check MX records before changing nameservers. Use a tool like
dig MX example.comafter propagation to verify. - DNS records missing – Cloudflare’s scan is not perfect. If you have subdomains or special records, add them manually before switching.
- Nameserver changes not taking effect – Some registrars take longer to propagate. Wait 24 hours before troubleshooting. Also, ensure you typed the nameservers exactly as provided.
- SSL certificate not issued – Cloudflare automatically issues a certificate for your domain, but it can take up to 15 minutes. If it fails, check that your DNS records are correct and that you haven’t accidentally left the proxy on for a record that points to an IP that doesn’t exist.
Cloudflare Plans and Costs
Cloudflare offers a free plan that includes DDoS protection, a shared SSL certificate, and basic CDN. For most personal websites, blogs, or small business sites, this is more than enough. Paid plans (Pro, Business, Enterprise) add features like advanced WAF rules, image optimization, and priority support. Pricing varies; check Cloudflare’s website for current rates. There are no hidden fees – you only pay if you choose a paid plan. The free plan is genuinely free with no time limit.
Alternatives to Cloudflare
If you’re not sure about Cloudflare, other DNS providers offer similar services:
- Amazon Route 53 – Reliable, but paid per query.
- Google Cloud DNS – Affordable, but no free tier.
- DNS Made Easy – Paid, but focuses on performance.
- Your registrar’s DNS – Simpler, but lacks CDN and security features.
For most users, Cloudflare’s free tier is the best balance of features and cost.
Frequently Asked Questions
Will adding Cloudflare slow down my site?
No, it typically speeds it up. Cloudflare’s CDN caches static resources (images, CSS, JS) on servers close to your visitors, reducing latency. The proxy layer adds a small overhead, but the caching benefit far outweighs it for most sites.
Do I need to change nameservers if I only want to use Cloudflare for DNS?
Yes, even if you only want DNS management, you must change your nameservers to Cloudflare’s. That’s how Cloudflare becomes authoritative. You can then set the proxy status to “DNS only” (gray cloud) for all records if you don’t want the CDN/security features.
Can I add a subdomain to Cloudflare without adding the root domain?
No, Cloudflare only works with full domains. You must add the root domain (e.g., example.com), and then you can manage subdomains within it. You cannot add just blog.example.com.
What if my domain is already on Cloudflare but I want to move it to another account?
You can transfer the domain to another Cloudflare account by removing it from the current account (after disabling proxy and waiting for DNS to settle) and adding it to the new one. However, you’ll need to change nameservers back to the registrar’s temporarily, then switch again. It’s a bit involved; Cloudflare’s support docs have a guide.
Does Cloudflare affect my email?
Only if you misconfigure DNS. As long as your MX records are correct, email flows directly to your mail server – Cloudflare does not proxy email traffic. However, if you use Cloudflare’s Email Routing feature, it can forward emails to your inbox, but that’s optional.
How long does it take for nameserver changes to propagate?
Usually under an hour, but it can take up to 24 hours due to TTL values on old DNS records. You can check with online DNS lookup tools to see if the new nameservers are live.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.