Connect Cloudflare To Shopify
Table of Contents
If your domain name was registered through a 3rd-party domain registrar, you need to accomplish two things to successfully link your domain to your Shopify store.
- Add Shopify’s Resource records in the domain’s DNS.
- Set up or add your domain through Shopify.
Based on Shopify’s help center, here are the the DNS records you need to add/modify:
- A record should point to Shopify’s IP address, which is 23.227.38.65
- www CNAME record should point to shops.myshopify.com
How or where can you add these DNS resource records?
DNS records can be added or modified through the domain’s DNS provider, the process varies depending who’s hosting it.
1.) Add Shopify’s Resource Records
If you’re using Cloudflare to manage the DNS of your domain, follow the steps below to redirect your domain to Shopify.
If not, check who the DNS provider of your domain and contact their support team to request adding these DNS resource records:
Host Name | Type | Data |
@ (domain.com) | A | 23.227.38.65 |
www (www.domain.com) | CNAME | shops.myshopify.com |
Cloudflare: Adding A and CNAME
To create a CNAME record, please follow these steps:
- Login to your Cloudflare account.
- Select your domain name on the list.
- Click the DNS settings tab.
- Click the +Add record or edit the existing www subdomain.
- Enter Shopify destination shops.myshopify.com and click Save.




Change the Target to Shopify’s actual CNAME value
To create an A record, please follow these steps:
- Login to your Cloudflare account.
- Select your domain name on the list.
- Click the DNS settings tab.
- Click the +Add record or edit the existing @ name.
- Enter Shopify IP address 23.227.38.65 and click Save.




Change the Target to Shopify’s actual A record
Once you’re done with the DNS configuration, don’t forget to add your custom domain through your Shopify account.
2.) Add Custom Domain in Shopify
Once you’re done adding the DNS records, you may now add your domain name to your Shopify account.
- Go to Shopify and Login to your account.
- Select Online Store in the dashboard.
- Click Domains.
- Click on Connect existing domain.
- Enter your custom domain name (example.com).
- Click Next.
- Click Verify Connection.
3.) DNS Propagation Delay
If Shopify is unable to verify the DNS records yet, give it several more minutes before attempting to verify the connection again.
Any DNS changes may take from few minutes up to 48 hours to fully take effect across the entire internet.
Given that the DNS is properly configured, you will definitely see your custom domain name integrated with your Shopify website soon.
Check out this post if you have another domain from a third party domain registrar that you wish to connect with Shopify.
Some of the links on the Website may be "affiliate links". This means if you click on the link and sign up or purchase an item, I may receive an affiliate commission at no cost to you. Please check Disclaimer for more info.