Connecting a Custom Domain to Shopify: DNS Settings and Common Errors
Your domain does not open your Shopify store. Set the correct A record and www CNAME, remove conflicting records and wait for verification.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
If you bought your domain somewhere other than Shopify, you point it at your store from your domain's DNS settings. Always compare with the values shown in your Shopify admin (Settings > Domains), because they can change.
The two records
- An A record for the root domain (
yourdomain.com) pointing to Shopify's IP address. At the time of writing Shopify's documented address is23.227.38.65. - A CNAME record for
wwwpointing toshops.myshopify.com.
Steps
- In Shopify, go to Settings > Domains > Connect existing domain and enter your domain.
- At your registrar or DNS host, open the DNS settings.
- Delete or edit any existing A record for the root and any CNAME for
wwwthat points elsewhere. Conflicting records are the most common reason this fails. - Add the two records above.
- Back in Shopify, click Verify connection.
Wait for verification and SSL
DNS can take from minutes to a day. Shopify issues the SSL certificate automatically after the domain verifies, and until then you may see a certificate warning. See our DNS guide.
Common problems
- Domain still shows an old site: an old A record is still there.
- www works, but the root does not (or the opposite): one of the two records is missing.
- Email stopped: if you changed nameservers instead of records, copy your MX records over.
- "Domain already connected": the domain is attached to another Shopify store, and must be removed there first.
Related guides
- How to Move a WordPress Site to a New Host or Domain: Checklist
- How to Create a Subdomain (blog.yourdomain.com, shop.yourdomain.com) and Point It Somewhere
- "Not Secure" Warning or Padlock Missing After Installing SSL (Mixed Content)
- Free SSL (Let's Encrypt) vs Paid Certificate: Which Do You Need?
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.