Point Your Domain to Shopify Using Cloudflare

This guide helps you:

  • Make a Cloudflare account

  • Add your domain to Cloudflare

  • Add Shopify DNS records

  • Set Cloudflare nameservers

Understand what to do for .com, .pk, or other domains

Step 1: Create a Cloudflare Account

  1. Go to https://dash.cloudflare.com/sign-up

  2. Type your email and password, and click "Verify you are human", then click Sign Up

 

signup.png

 

Step 2: Add Your Domain in Cloudflare

  1. Log in to Cloudflare

  2. Click “Add a Site”

  3. Type your domain (like yourdomain.com) and click Continue

add domain.png   

     4. Choose the Free Plan, then click Continue

Step 3: Add Shopify DNS Records

  1. In your Cloudflare dashboard, click on your domain name (e.g., yourdomain.com).

  2. Then click on “DNS” from the left-hand menu.

  1. Click the “Add Record” button.

Now add the following two DNS records one by one:

First Record (A Record for Shopify)

Type: A
Name: @
IPv4 Address: 23.227.38.65
Proxy Status: DNS Only (gray cloud ☁️)
TTL: Auto

Click Save

Second Record (CNAME for www)

Type: CNAME
Name: www
Target: shops.myshopify.com
Proxy Status: DNS Only
TTL: Auto

Click Save

 

Important Notes:

  • Delete any old A or CNAME records for @ or www before adding these.

  • Make sure the Proxy Status is set to DNS Only, not orange.

 

Step 4: Get Cloudflare Nameservers

  1. After DNS setup, Cloudflare will show two nameservers (like bella.ns.cloudflare.com, jeff.ns.cloudflare.com)

  2. Copy both nameservers

Step 5: Change Nameservers in Your Domain Panel

If You Have a .com Domain:

  1. Login to your domain registrar (like GoDaddy, Namecheap, etc.)

  2. Go to Manage DomainNameservers

  3. Choose Custom nameservers

  4. Paste both Cloudflare nameservers

  5. Save changes

If You Have a .pk, .ae, or Other Domain:

Some domains don’t allow direct nameserver change in the panel.

 In this case:

 Send your Cloudflare nameservers to your domain provider and ask them to update it for you.

Step 6: Wait for DNS to Update

  • DNS usually updates in few hours, but it can take up to 24–48 hours

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)