A custom domain makes your store look professional and helps customers remember you. Shopify lets you buy a domain directly or connect one you already own from another registrar. The process takes a few minutes, but DNS changes can take time to spread. This guide explains each step and how to avoid breaking your email in the process.
Buy through Shopify or connect your own
Buying a domain through Shopify is the simplest option: DNS is configured automatically and the domain renews with your Shopify billing. It suits new stores without an existing domain.
If you already own a domain with a registrar such as GoDaddy, Namecheap or Cloudflare, connect it to Shopify instead. You keep the domain at your registrar and update its DNS records to point to Shopify. This is common for businesses with existing email or websites.
Connecting an existing domain
In the Shopify admin, go to Settings > Domains and choose Connect existing domain. Enter your domain and Shopify will try to connect automatically if your registrar supports it. Otherwise, it shows the DNS records you need to add manually.
Typically, you set the A record for the root domain to Shopify’s IP address and a CNAME record for www to shops.myshopify.com. Check Shopify’s current instructions, as values can change. Remove conflicting A or CNAME records for the same names.
- 1Note email recordsMX and TXT
- 2Connect in ShopifySettings > Domains
- 3Update A and CNAMERemove conflicts
- 4Set primaryRedirect all traffic
- 5Check SSLAnd redirects
Protect your email first
Before changing DNS, note your existing MX records, which control email delivery, and any TXT records for SPF, DKIM or domain verification. Changing nameservers or deleting records can stop email working. Only change the A and CNAME records Shopify needs, leaving MX and TXT records in place.
If you move nameservers to a new provider, recreate all email records there before switching. My guide to DNS records explained covers what each record does.
Set the primary domain
Once connected, set your custom domain as the primary domain in Settings > Domains. Shopify then redirects visitors from other domains, including the myshopify.com address, to the primary one. Choose whether the primary is the www version or the root domain and keep it consistent.
A single primary domain avoids duplicate content and makes analytics cleaner. Make sure the ‘redirect all traffic to this domain’ option is enabled.
SSL certificates
Shopify provides free SSL certificates for connected domains automatically. After connecting, it can take a short while for the certificate to be issued. If SSL is pending for a long time, check that DNS records are correct and that no conflicting records exist.
Once SSL is active, all pages load over HTTPS. This is essential for security, trust and SEO. Check that links and embedded content use HTTPS to avoid mixed content warnings.
DNS propagation
DNS changes can take anywhere from a few minutes to around 48 hours to spread across the internet, although most updates are much faster. During this time, some visitors may see the old site and others the new store.
Lower the TTL on your DNS records a day before making changes to speed up propagation. Use an online DNS checker to see when your new records are visible in different locations.
Migrating from another website
If your domain previously pointed to another website, set up URL redirects in Shopify for old pages before switching DNS. Map old URLs to new Shopify URLs under Online Store > Navigation > URL redirects to keep search rankings and avoid broken links.
My guide to 301 redirects explains how to plan them. If you are migrating from WooCommerce, read migrating from WooCommerce to Shopify.
Email on your domain
Shopify does not host regular email inboxes, but it offers email forwarding for domains bought through Shopify. For a professional inbox, use Google Workspace or Microsoft 365 and add their MX records. See Google Workspace vs Microsoft 365.
Set your store’s sender email to an address on your domain and verify it in Shopify, adding the authentication records Shopify provides. This helps order emails reach inboxes instead of spam.
Multiple domains and brand protection
Many businesses register common variations of their domain, such as different extensions or common misspellings, to protect their brand. You can connect several domains to Shopify and redirect them all to the primary domain, so visitors reach the store whichever address they type.
For international stores, country domains such as .co.uk or .de can be connected to specific markets in Shopify Markets. Keep all domains renewing automatically with up-to-date payment details, because an expired domain takes the store offline and can be bought by someone else. My website ownership checklist covers this.
Troubleshooting
If the domain will not connect, check for typos in DNS records, duplicate A records, a CNAME on the root domain, or DNS managed by a different provider than you expect. Use Shopify’s domain verification tool to see what is wrong.
If you need help connecting a domain without disrupting email or an existing site, it is part of my Shopify development service and hosting and migration service. For a full launch checklist, see Shopify launch checklist.
Key takeaways
- Note your email records before changing any DNS settings.
- Only change the A and CNAME records Shopify needs.
- Set one primary domain and redirect all other domains to it.
- Set up URL redirects before switching from an old website.
Frequently asked questions
How long does it take to connect a domain to Shopify?
Setup takes minutes. DNS propagation can take up to 48 hours, though it is usually faster.
Will connecting my domain break my email?
Not if you keep your MX and TXT records unchanged.
Is SSL free on Shopify?
Yes. Shopify provides free SSL certificates for connected domains.
Can I use a subdomain for my Shopify store?
Yes, such as shop.yourdomain.com, by adding a CNAME record for the subdomain.
Should I use www or the root domain?
Either works. Choose one as primary and redirect the other to it.
