Connect or transfer the domain
There are two ways to use a domain bought elsewhere with Shopify. Connecting it means leaving it with your current registrar (GoDaddy, Namecheap, OVH or any other) and changing only the DNS records that point to the website. Transferring it means moving the registration to Shopify, which then handles renewals and DNS.
For a business that uses the same domain for email, internal tools, subdomains or other services, connecting is almost always the right call: you change two or three records and everything else stays as it is. Transferring only makes sense if the domain serves the store alone and you want a single provider.
This guide follows the connection route, which is the most common case. If you want a refresher on how domain, DNS and hosting split the work, start with our technical guide to DNS, domains and hosting.
Required A and CNAME records
In your registrar's DNS panel, or in Cloudflare if it manages your DNS, set these values provided by Shopify:
- A record on the root (host
@) pointing to23.227.38.65. There must be only one A record for the root: delete the others. - AAAA record on the root pointing to
2620:0127:f00f:5::. If your panel rejects the compact form, use the expanded form given in Shopify's documentation. Delete any other AAAA records. - CNAME record for
wwwpointing toshops.myshopify.com. Again, only one.
Leave the TTL at its default value. Then in Shopify go to Settings > Domains, choose Connect existing domain, enter the domain without www and confirm. The domain's detail page shows whether the records are correct, whether the domain is live in all regions and whether the certificate has been issued.
The most common mistake
The case we see most often is an old A record for www left in place. Many panels do not allow a CNAME on a name that already has an A record, or they accept it and the two records clash. Before creating the www CNAME, delete any existing A, AAAA or CNAME record on www.
Keeping your existing email
Email depends on records other than the website ones: MX for receiving, TXT for SPF and DMARC, and TXT or CNAME records for DKIM. Connecting the domain to Shopify does not require touching them. If you change only A, AAAA and the www CNAME, your mailboxes keep receiving and sending as before.
Two situations need care:
- Mailboxes included in a hosting plan: if your email lives on the same plan as the old website, do not cancel the hosting until you have moved email elsewhere. The site moves to Shopify, but the mailboxes stay there.
- Changing nameservers: if you also decide to move DNS to a different provider, copy every existing record first, MX included. The procedure is the one described in our guide to moving DNS to Cloudflare without losing email.
Email sent by Shopify
Shopify sends order confirmations and notifications from your store's sender address. If your domain is not authenticated, Shopify rewrites the sender to a shopifyemail.com address. To avoid this, authenticate the domain in the sender email settings: Shopify provides a few CNAME records for SPF and DKIM to add to your DNS. You also need a DMARC record, which you must add by hand for external domains; Shopify requires a single DMARC record and advises against strict alignment (adkim=s or aspf=s).
SSL certificate stuck on pending
Shopify issues a free TLS certificate for the connected domain. According to the documentation this can take up to 48 hours; after that, if issuance failed, a certificate unavailable message appears. If the status is still pending after two days, check in this order:
- that no duplicate or old A, AAAA or CNAME records sit next to Shopify's, on www too;
- that no AAAA record still points to the old hosting: it is the easiest leftover to forget;
- if the domain has CAA records, that they authorize the certificate authorities Shopify lists, including
letsencrypt.org. A CAA record states which authorities may issue certificates for the domain; if one is missing, the request is refused; - that DNSSEC, if enabled, is configured correctly, or disable it temporarily;
- that no proxy in front of the domain is intercepting the validation requests.
To see what public resolvers really return, without trusting your own machine's cache, use the methods in our article on DNS propagation.
Cloudflare in front of Shopify
If your domain's DNS is on Cloudflare, you do not need to move it back to the registrar: just create the records in Cloudflare. The question is whether to keep the proxy on (orange cloud) or set the records to DNS only (grey cloud).
The simplest choice is DNS only for Shopify's records: traffic goes straight to Shopify, which already runs its own infrastructure with a CDN, and the certificate renews without interference. Cloudflare also documents a setup with the proxy on in front of Shopify, called O2O, with some conditions. The most important: do not enable Always Use HTTPS, because it redirects validation requests and stops Shopify from issuing or renewing the certificate. Workers and Snippets also do not run on the /checkout path. Unless you have a specific reason for the proxy (security rules, custom caching), stay on DNS only.
Primary domain and redirects
Once connected, choose the primary domain in Settings > Domains: it is the one customers see in the address bar, and other connected domains redirect to it. Decide once between the www and non-www version, using the criteria in our article on www vs non-www, and do not change it again.
If the domain already hosted a site with indexed pages, connecting it to Shopify is not enough: old URLs need to redirect to the new ones through Shopify's URL redirects feature, which also accepts bulk CSV imports, or they will return 404 errors. Prepare the redirect map before changing DNS, not after.
Common problems
- The domain works without www but not with www: the www CNAME is missing, or an old record on www is still there.
- Some users still see the old site: propagation is incomplete, or an AAAA record still points to the old hosting and is used by IPv6 networks.
- Shopify reports wrong records although the values are right: check that the nameservers set at the registrar are the ones you are editing. Editing records in a DNS panel that is not the active one happens more than you would think.
- Order notifications come from shopifyemail.com: the sender domain is not authenticated, or there is more than one DMARC record.
- Email stopped arriving: someone deleted or replaced the MX records during the change. Restore your email provider's values.
If you are launching a store and want domain, email and certificate set up correctly from day one, it is part of our Shopify setup service.
- shopify
- dominio
- dns
- record a
- cname
- certificato ssl
- cloudflare
- email aziendale
Frequently asked questions
Will I lose my email when I connect my domain to Shopify?
No, as long as you change only the A, AAAA and www CNAME records. Email depends on MX records, which you should not touch. The real risk is cancelling your old hosting plan when your mailboxes are part of it, so check where they are hosted first.
How long does it take for the domain to work on Shopify?
Often minutes or a few hours, but Shopify says it can take up to 48 hours for the domain to be live everywhere and for the certificate to be issued. It also depends on the TTL of the records you replaced.
Why is my Shopify SSL certificate stuck on pending?
The most common causes are old A or CNAME records left next to the new ones, an AAAA record pointing elsewhere, CAA records that do not authorize Shopify's certificate authorities, misconfigured DNSSEC, or a proxy in front of the domain.
Should I connect or transfer my domain to Shopify?
For most stores, connecting is better: the domain stays with your current registrar together with email and other services. Transferring only simplifies things if the domain is used exclusively for the store.
Sources
- Connecting a third-party domain to Shopify manually — Shopify Help Center
- Enabling secure connections to your Shopify store — Shopify Help Center
- Sender email rewrites — Shopify Help Center
- Shopify provider guide (Cloudflare for SaaS) — Cloudflare Docs
- Certificate Authority Authorization (CAA) — Let's Encrypt
Related articles
Server & Domains · 6 min read
Move DNS to Cloudflare without losing email or your website: a safe procedure
How to move DNS to Cloudflare without breaking mail or the website: record inventory, checking the import, orange or grey cloud, the nameserver switch and a rollback plan.
Server & Domains · 6 min read
www vs non-www: choosing your primary domain and setting up redirects correctly
www or non-www makes no difference to Google, as long as only one version exists. How to choose, which DNS limits matter and how to set up redirects, HTTPS and Search Console.
Server & Domains · 7 min read
DNS, domain and hosting: technical guide to configuring everything correctly
Understanding the difference between registrar, DNS, hosting and server. How to configure Cloudflare, SSL, MX records and everything needed for solid infrastructure.
