Cloudflare provides a free CDN, DNS management, and security features. You can add your domain to Cloudflare and point it to your hosting server’s IP in just a few steps.
Step 1 – Create a Cloudflare Account
-
Go to https://dash.cloudflare.com.
-
Click Sign Up and create a free Cloudflare account.
-
Log in to your Cloudflare dashboard.
Step 2 – Add Your Domain
-
In the Cloudflare dashboard, click Add a Site.
-
Enter your domain name (e.g.,
example.com). -
Select the Free Plan (or another plan if needed).
-
Click Continue.
Step 3 – Review DNS Records
-
Cloudflare will scan your current DNS records automatically.
-
Check if your domain already has an A record for your hosting server.
-
If not, click Add Record → Select A Record.
-
In the Name field, enter
@(for root domain) orwww. -
In the IPv4 address field, enter your Hosting IP.
-
Click Save.
-
(Example: A → @ → 103.169.160.74)
-
Make sure orange cloud icon (Proxy) is ON if you want Cloudflare protection, or OFF if you only want DNS.
Step 4 – Update Nameservers
-
Cloudflare will give you two nameservers (e.g.,
ns1.cloudflare.comandns2.cloudflare.com). -
Go to your domain registrar’s panel.
-
Replace the old nameservers with Cloudflare’s nameservers.
-
Save changes.
Step 5 – Verify Setup
-
Go back to the Cloudflare dashboard.
-
It may take 1–24 hours for DNS changes to propagate.
-
Once verified, your domain will show Active in Cloudflare.