How to Connect a Custom Domain to Your Shopify EC Site | DNS Setup and Cloudflare
Connecting a custom domain to Shopify requires registering a domain, configuring DNS records, and verifying the connection. This guide covers the full setup process — including how to use Cloudflare for DNS management and what .jp / .co.jp domain owners need to know.
Introduction: Why a Custom Domain Matters for Your Shopify EC Site
When you first create a Shopify store, it is assigned a default address like your-store.myshopify.com. Operating on this address long-term limits customer trust and prevents your brand's SEO equity from accumulating on a domain you own.
Connecting a custom domain to Shopify lets you present a consistent brand identity while directing organic search traffic to a domain under your control. This guide covers the steps from domain registration to Shopify connection, and explains why Cloudflare is recommended for DNS management.
Registering a Domain
Choosing a Registrar
A domain registrar is a service through which you purchase and manage a domain name. Cloudflare Registrar offers domain registration at cost price — no markup beyond ICANN fees — and supports popular TLDs including .com, .net, and .dev. Regional Japanese registrars such as Onamae.com and Sakura Domain are common options for Japanese TLDs.
Annual domain costs vary by TLD:
.com/.net: approximately ¥1,000–2,000 per year.jp: approximately ¥2,500–4,000 per year.co.jp: approximately ¥4,000–7,000 per year (requires a registered Japanese legal entity)
When selecting a registrar, check the renewal price — some services offer discounted first-year pricing that increases significantly upon renewal.
Choosing a Domain Name
Choose a short, brand-aligned name that is easy to remember. Verify that the name does not conflict with any existing trademarks before registering.
Connecting a Custom Domain to Shopify
How DNS Records Work
Connecting a custom domain to Shopify requires configuring DNS records. DNS (Domain Name System) translates human-readable domain names into IP addresses that route traffic to the correct server.
For a Shopify connection, two record types are required:
- A record: Points the root domain (
example.com) to Shopify's IP address23.227.38.65 - CNAME record: Points the
wwwsubdomain toshops.myshopify.com
DNS Propagation
After updating DNS records, changes propagate across the global DNS infrastructure over time. This typically takes a few hours but can take up to 72 hours. If your site is not immediately accessible after configuration, allow time for propagation before troubleshooting.
Using Cloudflare for DNS Management
What Cloudflare Provides
Cloudflare is a CDN, DNS management, and security platform. By pointing your domain's nameservers to Cloudflare, you gain access to the following features — most available on the free plan:
- Automatic DDoS mitigation: Cloudflare absorbs and filters volumetric attack traffic at the network edge before it reaches your origin server
- Bot management: Malicious crawlers and abusive automated traffic are blocked before reaching Shopify
- CDN performance: Content is cached across Cloudflare's global network, reducing load times for visitors worldwide
- Free SSL certificate: HTTPS is automatically enabled for your domain
For an EC site handling customer data and payments, these protections are material. Cloudflare provides meaningful security coverage at no cost.
Registrar Transfer vs. Nameserver Change
Cloudflare Registrar supports registrar-level transfers for popular TLDs (.com, .net, .dev, and others), allowing you to manage both domain registration and DNS in one place at cost price.
However, .jp and .co.jp domains are not supported by Cloudflare Registrar — you cannot transfer these TLDs to Cloudflare as your registrar. What you can do is change the nameservers to Cloudflare regardless of TLD. This keeps your existing registrar managing the registration while Cloudflare handles DNS resolution, CDN, and security — providing all the same benefits without a registrar transfer.
.jp and .co.jp Domains
.jp and .co.jp are country-code TLDs managed by JPRS (Japan Registry Services). While a Cloudflare Registrar transfer is not supported, pointing the nameservers to Cloudflare is fully supported. DDoS protection, bot management, CDN caching, and automatic SSL certificate issuance all work the same way regardless of your registrar.
.co.jp registration requires proof of a registered Japanese legal entity and may involve additional verification steps.
What the Domain Setup Option Includes
Our domain setup support covers:
- Domain registration guidance (registrar selection and account setup)
- DNS record configuration (A record and CNAME record)
- Cloudflare nameserver configuration
- Shopify connection verification and end-to-end testing
The estimated cost is +¥30,000. For .jp / .co.jp domains, an additional +¥20,000 applies — making the total +¥50,000. The annual domain registration fee is billed separately as a direct cost.
Summary
Connecting a custom domain to Shopify is one of the first technical steps when launching an EC site. Because DNS misconfiguration can make the site unreachable, careful setup and post-configuration verification are essential.
We strongly recommend using Cloudflare for DNS management. DDoS mitigation, bot blocking, CDN performance improvements, and automatic SSL issuance are all available at no cost and require only a nameserver change — no registrar transfer is needed. This applies equally to .jp and .co.jp domains.
1mm 開発部
1mm's Shopify development group. Drawing on hands-on experience building and renewing e-commerce sites with Shopify (Liquid), the team publishes practical information on costs, work cases, and operational know-how. All articles are produced under the supervision of the technical lead.
1mm 真鍋
Specializes in building e-commerce sites with Shopify (Liquid), with hands-on development experience spanning Next.js, React, and TypeScript (this site's stack), Python (Django), WordPress (PHP), and HTML/CSS — across both front end and back end. Draws on this implementation expertise to supervise Shopify development articles and work cases as the technical lead.
FAQ
No. The domain registration and annual renewal fee is a direct cost paid to the registrar and is billed separately. `.com` / `.net` domains typically cost ¥1,000–2,000 per year; `.jp` domains cost approximately ¥2,500–4,000 per year. This is separate from the domain setup support fee.
Related articles
Shopify Shipping and Delivery Setup Guide | Rate Rules, Shipping Zones, and Carrier Integration Explained
SetupGetting shipping and delivery right on Shopify directly affects checkout completion rates. This guide explains what Shopify's built-in shipping settings cover — zones, rate rules, and free shipping thresholds — and how that differs from carrier app integrations that automate label printing and tracking number sync for carriers like Yamato Transport, Sagawa Express, and Japan Post.
11mm 開発部How to Customize Product Information on Shopify | Metafields, Theme Display, and Structured Data
SetupShopify's standard product fields don't cover everything — materials, origin, specifications, and other custom attributes require metafields. This guide covers how to define metafields in the Shopify admin, display them on product pages using Liquid, and output them as structured data (JSON-LD) to improve SEO and AI search visibility.
11mm 開発部Shopify Policy Setup for EC Sites|Required Policies, Admin Settings, and What to Prepare
SetupWhen launching a Shopify EC site, you need to prepare policy pages such as the Specified Commercial Transactions Act disclosure, Privacy Policy, Return Policy, and Shipping Policy. This article explains what each policy should cover and how to configure them in the Shopify admin.
11mm 開発部How to Build an Owned Media Strategy for Your Shopify EC Site | Blog, Metafields, and Liquid Templates
SetupCombining Shopify's blog feature with metafields is one of the most effective ways to grow organic traffic for an EC site. This guide explains how owned media design works — from linking articles to products, to custom blog templates and automatic related-product output — for EC site managers evaluating Shopify.
11mm 開発部