How to Connect a Custom Domain to Shopify
Your store's address is one of the first things a shopper sees, and yourstore.myshopify.com doesn't exactly scream "real brand." The good news: it only takes a few minutes of work to connect a custom domain to Shopify, whether you already own one from GoDaddy or Namecheap or you want to buy a fresh one inside your Shopify admin. This guide walks you through both routes, the exact DNS records you'll need, how to make your new domain the one customers see, and what to do if something gets stuck.
Quick answer: If you already own a domain, log in to your domain provider and point the A record (@) to 23.227.38.65, the AAAA record to 2620:0127:f00f:5::, and the www CNAME to shops.myshopify.com. Then in Shopify go to Settings > Domains > Connect existing domain, enter your domain and click Connect domain. If your domain is with Cloudflare, GoDaddy or IONOS, you can pick Connect automatically instead. Once it shows as Connected, set it as your primary domain.
Why a custom domain matters for your Shopify store
When you sign up, Shopify gives your store a free address that ends in .myshopify.com. It works, but it's long, hard to remember and makes your shop look like it's still under construction. A custom domain like yourbrand.com fixes all of that.
Here's what you actually get from it:
- Trust. Shoppers are more comfortable handing over card details on a site with its own name.
- Memorability. People can type it from a business card, an Instagram bio or a packing slip without squinting.
- Branding that you own. If you ever move platforms, the domain comes with you. The myshopify address doesn't.
- A cleaner foundation for search. It's much easier to build links and brand searches around one consistent address. If you're working on getting found, our guide to Shopify SEO basics for new stores picks up right where this one leaves off.
If you haven't finished setting up the store itself yet, start with our step-by-step guide to starting a Shopify store and come back here once your products and theme are in place. A domain is one of the last things to switch on before launch.
Connect vs. transfer vs. buy: pick your route
There are three ways to get a custom domain onto your store, and they're easy to mix up. Connecting means your domain stays with the company you bought it from, and you just point it at Shopify. Transferring means moving the domain's registration over to Shopify. Buying means getting a brand-new domain directly in your Shopify admin.
Shopify's own page on connecting vs. transferring a third-party domain lays out the differences clearly. Here's a summary based on that page:
| Connect | Transfer | |
|---|---|---|
| Where you edit DNS | Your domain provider | Shopify admin |
| Where you pay and renew | Your domain provider | Shopify admin |
| Help from Shopify Support | Store connection issues only | Full domain support |
| Setup time | Minutes to 48 hours | Up to 20 days |
| Works with every extension | Yes | No, some can't be transferred |
My honest suggestion for most new store owners: connect first. It's quick, it doesn't touch your billing, and Shopify itself recommends starting there if you're unsure, because you can always transfer later. The same Shopify page also notes that a domain registered or transferred within the past 60 days usually has to be connected rather than transferred.
If you don't own a domain yet, buying through Shopify is the simplest path, because the DNS records are filled in for you. I'll cover that further down.
How to connect a custom domain to Shopify (step by step)
This is the most common situation: you bought a domain somewhere else and now want it to open your Shopify store. Before you start, have your domain provider login handy. That's honestly the hardest part for a lot of people, since it's often an account you made once and forgot about.
Option 1: Connect automatically (Cloudflare, GoDaddy, IONOS)
According to Shopify's help center, domains bought from Cloudflare, GoDaddy or IONOS can be connected without editing any records by hand. Here's how:
- In your Shopify admin, go to Settings > Domains.
- Click Connect existing domain.
- Type your root domain, like example.com, and click Next. Leave off "www."
- Click Connect automatically.
- Log in to your Cloudflare, GoDaddy or IONOS account when the window pops up.
- Click Connect, then Close.
That's it. If the automatic flow fails for some reason, don't panic. Just switch to the manual method below, which works with any provider.
Option 2: Connect manually (any domain provider)
Shopify's guide to connecting a third-party domain manually lists the three values you need. Write them down or keep that page open:
- A record: 23.227.38.65
- AAAA record: 2620:0127:f00f:5:: (if your provider rejects the short version, Shopify gives the expanded form: 2620:0127:f00f:0005:0000:0000:0000:0000)
- www CNAME record: shops.myshopify.com.
Step 1: Update your DNS records at your domain provider
- Log in to your domain provider's website.
- Find the DNS settings. Depending on the company, this might be called DNS Management, Advanced DNS, Zone Editor or something similar.
- Edit the A record so it points to 23.227.38.65. The host or name field should be @, which stands for your root domain.
- Delete any other A records on the root domain. You can only have one.
- Edit (or add) the AAAA record with host @ and point it to 2620:0127:f00f:5::. Delete any other AAAA records.
- Edit the CNAME record with the name www so it points to shops.myshopify.com. Shopify asks you to include the period at the end. Some providers add it for you, so don't worry if it disappears after you save.
- Save your changes. Leave the TTL at its default value.
One thing that trips people up: don't delete records you didn't create for your website. MX records (for email), TXT records (for things like Google verification) and CNAMEs for other subdomains, like mail or blog, should stay exactly as they are. You're only replacing the root A, the AAAA and the www CNAME.
Step 2: Tell Shopify about the domain
- In your Shopify admin, go to Settings > Domains.
- Click Connect existing domain.
- Enter your domain, like example.com, and click Next. Again, no "www."
- Click Connect domain.
Shopify's help center says DNS changes usually take effect within two hours but can take up to 48 hours to go fully live. You can click your domain on the Domains page at any time to check its status.
Quick side note: after connecting, Shopify may show your A record with a slightly different last number, such as 23.227.38.32. The manual connection guide says that's a regional variation and still a valid record, so there's nothing to fix.
Make your custom domain the primary domain
Connecting the domain doesn't automatically make it the address customers see. Until you change it, your store might still show the myshopify address in the browser bar. Your primary domain is the one that sticks, and every other domain you've added redirects to it.
Shopify's page on changing your store's primary domain says your domain needs a Connected status first. Once it does:
- Go to Settings > Domains.
- Click the domain you want as your main address.
- In the Type row, click Change.
- Select Primary domain.
- Click Change domain type to save.
Your old primary domain, usually the myshopify one, becomes a redirect domain. It stays connected, and anyone who visits it lands on your new address. That means old links you shared before launch keep working.
If you sell internationally using Shopify Markets, read the international section on that same page before switching, because markets that use subfolders change their URLs along with your primary domain.
Buying a domain through Shopify instead
Don't have a domain yet? You can buy one without leaving your admin. Go to Settings > Domains, click Buy new domain, search for a name, compare the extensions and click Buy. Shopify's help center notes a few things worth knowing before you pay:
- The price depends on which extension you pick (.com, .store, .co and so on), so compare them on the search results screen.
- Domains are registered for one year and renew every year. Auto-renew is on by default, and renewals are billed separately from your Shopify plan.
- Purchases are non-refundable, and you can't change the spelling afterward. Double-check before you click.
- Shopify doesn't provide email hosting, so if you want hello@yourbrand.com you'll set up forwarding or connect a separate email service.
- Domain hosting through Shopify needs a paid plan, and you'd have to transfer the domain out before closing your store if you want to keep it.
The upside is real, though: the DNS records are added for you, and if it's the first domain on your store, it's set as your primary domain automatically. After buying, check your inbox for a verification email from Shopify. Shopify says you need to verify your email address to complete the registration, so don't skip it.
What about the padlock (SSL)?
You don't need to buy a security certificate. Shopify's page on enabling secure connections for your store says certificates are free for every domain you add, and they're issued automatically once your records point to Shopify. For a connected third-party domain, it can take up to 48 hours, and you may see "SSL pending" in your admin during that time. The same page also says third-party SSL certificates can't be used with Shopify.
If you host images, fonts or videos outside Shopify, make sure they load over HTTPS. Otherwise browsers may flag the page as not fully secure. Keeping assets on Shopify is the easiest fix, and it often helps load times too. Our guide on how to speed up your Shopify store covers more ways to keep pages light.
Mistakes to avoid
- Leaving an old A record in place. If your domain used to point to a parking page or an old website, that A record has to go. Two A records on the root domain is one of the most common reasons a connection fails.
- Typing "www" in the Shopify connect box. Shopify asks for the root domain only (example.com). The www part is handled by the CNAME record.
- Deleting your email records. Clearing out "everything" in DNS can quietly break your business email. Only touch the A, AAAA and www CNAME records.
- Leaving Cloudflare's proxy turned on. Shopify's Cloudflare guide says records pointing to Shopify must be set to DNS only, not Proxied, because Cloudflare proxy setups aren't supported.
- Forgetting to set the primary domain. A connected domain that isn't primary means customers can still end up on the myshopify address.
- Letting the domain expire. With a connected domain, renewals happen at your provider, not Shopify. Turn on auto-renew there and keep your card up to date.
- Panicking after an hour. DNS takes time to spread across the internet. Give it the full 48 hours Shopify mentions before you start changing things again.
Troubleshooting a domain that won't connect
If your domain still isn't showing as Connected after 48 hours, work through this list:
- Recheck the three values. A single typo in the IP address or a missing period in the CNAME is enough to break it.
- Look for duplicate records. Make sure there's only one A record and one AAAA record on @, and one CNAME named www.
- Check your nameservers. Shopify recommends using your provider's default nameservers unless your DNS is hosted somewhere else, like Cloudflare. If it is, make the changes there instead of at your registrar.
- Check CAA records. You don't need them, but if your domain has them, Shopify says they must allow letsencrypt.org, pki.goog and ssl.com, or your certificate can't be issued.
- Contact your domain provider. Shopify Support can tell you which records are needed, but it can't log in to your provider account for you. Your provider's support team can make or check the changes directly.
Keep reading:
FAQ
How long does it take to connect a domain to Shopify?
Shopify's help center says DNS changes usually take effect within two hours, but it can take up to 48 hours for the domain to be fully live and for the free SSL certificate to be issued.
Do I have to transfer my domain to Shopify to use it?
No. You can connect a domain you bought elsewhere by updating its DNS records, and it stays registered with your current provider. You'll keep paying for and renewing it there. Transferring is optional.
Will connecting my domain to Shopify break my email?
It shouldn't, as long as you only change the root A record, the AAAA record and the www CNAME. Leave your MX and other email-related records alone and your inbox will keep working.
Do I need to buy an SSL certificate for my Shopify domain?
No. Shopify provides TLS (SSL) certificates for free on every domain added to a store, and it doesn't allow third-party certificates.
What happens to my myshopify.com address after I connect a custom domain?
It stays active. Once you set your custom domain as primary, visitors who use the myshopify address are redirected to your new domain automatically.
Wrapping up
Connecting a custom domain is a small job with a big payoff. Point three records at Shopify, connect the domain in Settings > Domains, give it up to two days, then make it your primary domain. After that, your store finally has an address you can put on packaging, social profiles and ads with confidence.
Stuck on a particular domain provider or seeing an error message you don't recognize? Drop a comment below with what you're seeing, and let's figure it out.
Comments
Post a Comment