How to Add a Domain to Cloudflare and Point it to Hosting IP

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

  1. Go to https://dash.cloudflare.com.

  2. Click Sign Up and create a free Cloudflare account.

  3. Log in to your Cloudflare dashboard.

Step 2 – Add Your Domain

  1. In the Cloudflare dashboard, click Add a Site.

  2. Enter your domain name (e.g., example.com).

  3. Select the Free Plan (or another plan if needed).

  4. Click Continue.

Step 3 – Review DNS Records

  1. Cloudflare will scan your current DNS records automatically.

  2. 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) or www.

    • In the IPv4 address field, enter your Hosting IP.

    • Click Save.

(Example: A → @ → 103.169.160.74)

  1. Make sure orange cloud icon (Proxy) is ON if you want Cloudflare protection, or OFF if you only want DNS.

Step 4 – Update Nameservers

  1. Cloudflare will give you two nameservers (e.g., ns1.cloudflare.com and ns2.cloudflare.com).

  2. Go to your domain registrar’s panel.

  3. Replace the old nameservers with Cloudflare’s nameservers.

  4. Save changes.

Step 5 – Verify Setup

  1. Go back to the Cloudflare dashboard.

  2. It may take 1–24 hours for DNS changes to propagate.

  3. Once verified, your domain will show Active in Cloudflare.

Was this article helpful?

Related Articles