How to Connect a Domain to Cloudflare (DNS + HTTPS Steps)
Add site, change nameservers, set DNS records, and get free SSL working.
By DigitalNepal · Updated 2026-10-04 · Verify current figures on official sources
Try it right here:
Real DNS answers via encrypted DNS (DoH). Compare resolvers to spot propagation delays after DNS changes.
Cloudflare gives free CDN, DNS and HTTPS. Setup is: add domain, point nameservers, verify records, wait.
Steps
1Add domain to Cloudflare
Sign up, Add Website, pick the free plan. Cloudflare scans existing DNS - review every record.
2Change nameservers
At your registrar, replace nameservers with the two Cloudflare assigns. Propagation takes minutes to hours.
3Set SSL to Full
SSL/TLS tab > Full (strict if origin has valid cert). Flexible mode causes redirect loops - avoid it.
4Verify with DNS checker
Use the DNS Checker tool: A records should show Cloudflare IPs. Then test https:// load.
Good to know: Screenshot old DNS records before switching. One wrong delete can take email down with the site.
FAQ
Email stopped after Cloudflare?
MX records didn't copy over. Re-add mail records exactly as the old DNS had them.
Was this page helpful?
Related tools
Related guides
DNS Explained: Faster and Safer Browsing Setup
What DNS is, when changing it helps, and safe settings for home users.
How to Connect a Domain to GitHub Pages (CNAME Steps)
Custom domain on GitHub Pages with CNAME file, DNS records and HTTPS enforcement.
How to Connect a Domain to Vercel (Nameservers or Records)
Add domain in Vercel, verify with DNS, and get automatic HTTPS.
How to Connect Cloudflare to a Domain (Nameserver Method)
Move DNS to Cloudflare for free CDN, firewall and HTTPS in 4 steps.