Tutorial

How to Connect a Domain to Shopify: Step-by-Step (2026)

Connect a domain you own to Shopify: add it in Settings > Domains, set the A and www CNAME records at your registrar, verify, then make it primary.

On this page
  1. Step 1: Start the connection in Shopify
  2. Step 2: Write down your current DNS records
  3. Step 3: Point the A record and the www CNAME to Shopify
  4. Step 4: Verify the connection and set the primary domain
  5. Step 5: Check email, redirects and Search Console
  6. Moving from WordPress or another platform? Plan the switch
  7. Troubleshooting
  8. FAQs

To connect a domain to Shopify, go to Settings > Domains > Connect existing domain in Shopify, enter your domain, then at your domain registrar set an A record for @ to 23.227.38.65 and a CNAME for www to shops.myshopify.com. Back in Shopify, click Verify, and set the domain as primary.

Time required: 15 minutes of work, then up to 48 hours for DNS to update (often much less)

What you'll need:

  • A Shopify store on a paid plan
  • Login to the registrar where you bought the domain (GoDaddy, Hostinger, BigRock, Namecheap and so on)
  • A note of any existing email (MX) records, so you do not break email

This keeps the domain registered where it is (you keep paying the renewal there) and leaves your email records alone. If you want Shopify to manage the whole domain instead, you can transfer it, but that is a separate process (see transferring a domain to another registrar).

Step 1: Start the connection in Shopify

Where: Shopify admin > Settings > Domains > Connect existing domain

  1. In Shopify admin, click Settings (bottom left), then Domains.
  2. Click Connect existing domain.
  3. Type your domain without https:// or www, for example yourdomain.com, and click Next.
How to connect a domain to Shopify: Settings Domains page with the Connect existing domain button highlighted
Step 1: Settings > Domains > Connect existing domain, then type the domain you already own.

Shopify may offer to connect automatically if your registrar supports it. That is fine to use; the manual steps below are what it does for you, and they work with every registrar.

Step 2: Write down your current DNS records

Where: Your registrar > Domains > yourdomain.com > DNS / Manage DNS

Before changing anything, open your registrar's DNS page and take a screenshot of every record. In particular note the MX and TXT records: those run your business email (Google Workspace, Zoho, Hostinger email and so on) and must not be deleted. You will only touch two records.

If your site was on WordPress before, also note the old A record. That way you can switch back quickly if you need to.

Step 3: Point the A record and the www CNAME to Shopify

Where: Registrar DNS zone: A record (@) and CNAME record (www)

  1. Edit the A record with name/host @ (sometimes shown as blank or as your domain) and set the value to 23.227.38.65. If there are several A records for @, delete the extra ones so only Shopify's remains.
  2. Edit the CNAME with name www and set it to shops.myshopify.com. If www is an A record instead, delete it and create the CNAME.
  3. If there is an AAAA record for @ pointing at your old host, remove it, otherwise some visitors still reach the old server.
  4. Save. Leave MX, TXT (SPF, DKIM, DMARC, verification) and any other records exactly as they were.
Registrar DNS zone with the A record for @ set to 23.227.38.65 and the CNAME for www set to shops.myshopify.com highlighted
Step 3: Only the A record for @ and the CNAME for www change. Email (MX) and TXT records stay as they are.

Some registrars insist on the full name, such as www.yourdomain.com, or add a trailing dot. Follow the format the other records on the page already use.

Step 4: Verify the connection and set the primary domain

Where: Shopify admin > Settings > Domains

  1. Back in Shopify, click Verify connection. If it says the records are not found yet, wait 30 to 60 minutes and try again.
  2. Once connected, open Change primary domain (or the menu next to the domain) and choose yourdomain.com or www.yourdomain.com. Pick one and keep it.
  3. Make sure the option to redirect all traffic to the primary domain is on, so the myshopify.com address and the other variant redirect to it.
Shopify Domains list with yourdomain.com marked Primary and Connected, and www redirecting to the primary domain
Step 4: When the domain shows Connected and Primary, every other address redirects to it.

Shopify issues a free SSL certificate automatically once DNS is correct. The padlock can take a while to appear; do not buy a separate certificate.

Step 5: Check email, redirects and Search Console

  • Send an email to your business address from Gmail and reply to it, to confirm email still works.
  • Open http://, https://, www and non-www versions of your domain: all four should land on the same primary URL.
  • If you moved from another platform, set up URL redirects in Content > Menus > URL Redirects (or Online Store > Navigation in older admins) for old page URLs. The migration guide covers the reverse move, and the same redirect logic applies.
  • Add the domain to Google Search Console and submit /sitemap.xml.

Moving from WordPress or another platform? Plan the switch

If the domain currently shows a live website, the moment the A record changes, visitors start seeing Shopify instead. A little planning avoids a broken day:

  • Finish the store first. Products, policies, payments and shipping should be ready, and the store password (Online Store > Preferences) removed, before you change DNS.
  • Lower the TTL a day ahead. If your registrar lets you edit TTL, set the A and www records to a short value (such as 300 seconds) the day before. The switch then spreads faster, and so does a rollback.
  • List your old URLs. Export the old sitemap and your top pages from Search Console. Shopify URLs follow fixed patterns (/products/, /collections/, /pages/, /blogs/news/), so most old URLs need a redirect.
  • Keep the old hosting for a few weeks. Do not cancel it the same day. You may need old files, images or the database, and your email may still be hosted there.
  • Check subdomains. If you use subdomains such as blog.yourdomain.com or shop.yourdomain.com for other services, leave their records alone; only @ and www move to Shopify.

Switch on a quiet day and time, not during a sale or festival campaign, and test checkout on the live domain once the padlock appears.

Troubleshooting

  • "Domain not connected" after a day: check for a second A record or an AAAA record on @ still pointing to the old host. Use a public DNS checker to see what the world sees.
  • www works but the bare domain does not (or the reverse): one of the two records is wrong. The A record handles the bare domain; the CNAME handles www.
  • Your domain uses Cloudflare nameservers: make the changes in Cloudflare's DNS tab, not at the registrar, and set both records to DNS only (grey cloud).
  • Email stopped working: an MX record was deleted or changed. Restore it from your screenshot.

FAQs

How long does it take to connect a domain to Shopify?

The setup takes about 15 minutes. DNS changes usually show within a few hours, but Shopify allows up to 48 hours before the connection and SSL are complete.

Will connecting my domain to Shopify affect my email?

No, as long as you only change the A record for @ and the CNAME for www. Email depends on the MX and TXT records, which you leave untouched.

Do I have to transfer my domain to Shopify?

No. Connecting keeps the domain at your current registrar. Transfer only if you want Shopify to handle renewals and DNS.

Stuck on a step?

Tell me where you got stuck and I'll reply with a plan and a fixed quote, usually within 24 hours.

Contact

Let's build your next website

Available for freelance projects, agency white-label work and long-term maintenance. Feel free to pass this along to your team or company.

I reply within 24 hours, usually the same day. Your details are emailed to me, then WhatsApp opens so we can chat right away.

Chat now