Black Friday New domains at 5% below our own cost first year · until December 6 · up to 10 domains per account See prices

How to connect a domain to Shopify (from any registrar)

Connect a domain from any registrar to Shopify: the A record, AAAA and www CNAME values from Shopify's docs, steps in our DNS editor, and troubleshooting.

Updated By GetNameDot team 5 min read

On this page
  1. The records Shopify needs
  2. Before you start
  3. Step 1: Update DNS in GetNameDot
  4. Step 2: Connect the domain in Shopify
  5. Step 3: Verify the connection
  6. Check the records yourself
  7. Troubleshooting
  8. Good practice for store domains
  9. Several stores, several domains?

Short answer: in Shopify, go to Settings → Domains → Connect existing domain. At your DNS host, point the root domain (@) to Shopify with an A record of 23.227.38.65 (plus an AAAA record of 2620:0127:f00f:5::), point www with a CNAME to shops.myshopify.com, and delete any other A and AAAA records on the root. Then verify the connection in Shopify. It can take up to 48 hours to be fully live, and your email keeps working because MX records don't change.

The record values and steps come from Shopify's help center article Connecting a third-party domain to Shopify manually (checked 29 Oct 2026). Shopify updates these values occasionally. If the Shopify admin shows something different, follow Shopify.

The records Shopify needs

Name (host)TypeValueNotes
@A23.227.38.65Only one A record on the root
@AAAA2620:0127:f00f:5::Some hosts need the long form 2620:0127:f00f:0005:0000:0000:0000:0000
wwwCNAMEshops.myshopify.comShopify writes it with a trailing dot (shops.myshopify.com.)

Shopify's rule: "You can have only one A record and one www CNAME record associated with your domain." Delete any other A or AAAA records on the root. Shopify also recommends leaving the TTL at your provider's default.

Before you start

A few minutes of preparation avoids most problems:

  • Write down the current records. Open the DNS page and note every row, especially MX and TXT records (email, SPF, DKIM, site verifications). If something goes wrong, you can put them back.
  • Know where your DNS is hosted. The domain page shows "Our DNS" or "Custom nameservers". The records must be changed wherever DNS is actually served.
  • Lower the TTL a day ahead if the domain already serves a live website. In our editor, set the TTL of the old @ and www records to 5 minutes and save. When you switch to Shopify the next day, visitors' resolvers pick up the change much faster.
  • Decide which address customers should see. The records below cover both example.com and www.example.com. Shopify's separate article on making a domain the primary domain explains how to choose the one your store uses.

Step 1: Update DNS in GetNameDot

These steps assume the domain uses our nameservers ("Our DNS"), which is the default for domains registered here. If it uses custom nameservers (Cloudflare, for example), make the same changes at that DNS provider instead.

  1. Sign in, open My domains and click the domain.
  2. Click Manage DNS records.
  3. Delete conflicting rows: any existing A or AAAA record with the name @, and any existing record with the name www.
  4. Click "Preset: point to an IP". It adds two rows: an A record for @ and a CNAME for www.
  5. In the A row, replace the placeholder IP with 23.227.38.65.
  6. In the www row, replace the value (your own domain) with shops.myshopify.com. Enter it without the trailing dot.
  7. Click + Add record and add the AAAA row: name @, type AAAA, value 2620:0127:f00f:5::.
  8. Leave your MX and TXT rows (email, SPF, verification) untouched, and click Save DNS records.

Saving replaces the whole record set with what the editor shows, so check the list once more before you save. After saving, the editor confirms that changes propagate within minutes, up to the TTL of the old records.

Your finished zone should contain these website records:

NameTypeValue
@A23.227.38.65
@AAAA2620:0127:f00f:5::
wwwCNAMEshops.myshopify.com

Step 2: Connect the domain in Shopify

Per Shopify's article:

  1. In the Shopify admin, go to Settings → Domains.
  2. Click Connect existing domain.
  3. Enter your root domain without www. (for example example.com) and click Next.
  4. Click Connect domain.

Step 3: Verify the connection

Click the domain in the Settings → Domains list to see its connection details. Shopify shows a successful connection when the DNS records point to Shopify, the domain is live in all regions, and the TLS certificate is provisioned. Shopify says "It might take up to 48 hours for your domain to be fully live."

Once it's connected, you can make it your store's primary domain. Shopify covers that in its separate article on primary domains.

Check the records yourself

You don't have to wait for Shopify to tell you whether DNS is right. From a terminal:

CommandExpected answer
dig example.com A +short23.227.38.65 and nothing else
dig example.com AAAA +short2620:127:f00f:5:: (shown in short form)
dig www.example.com CNAME +shortshops.myshopify.com.
dig example.com MX +shortYour email provider's servers, unchanged

If the answers are right but Shopify still shows an error, wait. Shopify's checks and certificate issuing can lag behind DNS. If the answers are wrong, look for a leftover record in the editor, or check whether DNS is hosted somewhere else.

Troubleshooting

ProblemLikely causeFix
Shopify says the records are wrongAn old A or AAAA record on @ is still thereDelete every A/AAAA on @ except Shopify's
www doesn't connectAn old www A record or CNAME is still there, or a typo in the CNAMEKeep a single www CNAME to shops.myshopify.com
Our editor rejects a CNAME on @A CNAME can't be used on the root domainUse the A (and AAAA) record for @; the CNAME only goes on www
The AAAA value is rejectedSome hosts don't accept the short IPv6 formUse 2620:0127:f00f:0005:0000:0000:0000:0000
The A record later shows 23.227.38.32Shopify assigned a different host IDShopify says this is still valid
Email stoppedMX records deleted along with the website recordsRestore the MX and SPF records from your email provider's setup page
Still showing the old siteDNS cacheWait for the old TTL to expire; Shopify allows up to 48 hours

Using Cloudflare or another DNS host? Then the records go there, not in our editor. Shopify notes that your nameservers must respond and publish the required records. In GetNameDot, the domain page shows which nameservers are active ("Our DNS" or "Custom nameservers").

Good practice for store domains

  • Keep the domain registered in the business's name and turn on auto-renew. A lapsed store domain takes checkout down with it.
  • Turn on two-factor authentication for both your Shopify account and your domain account.
  • Protect your brand's common misspellings, especially if you run paid ads or send order emails. Our brand typosquatting checklist takes 30 minutes.
  • Set up email authentication for your own mailboxes on the domain: MX, SPF, DKIM and DMARC. See our Google Workspace DNS guide.

Several stores, several domains?

Agencies often connect many client domains to Shopify. The records are the same for every store, so it's mostly repetition. If you also need to change nameservers, transfer lock or auto-renew on many domains, bulk domain management handles up to 50 domains per action. Building on Vercel instead? See connecting a domain to Vercel.

Need a domain for a new store? Search on the homepage or compare extensions on the pricing page.

Frequently asked questions

What DNS records does Shopify need?

According to Shopify's help center, an A record on @ pointing to 23.227.38.65, an AAAA record on @ pointing to 2620:0127:f00f:5::, and a CNAME on www pointing to shops.myshopify.com. Other A and AAAA records on the root should be removed.

Do I have to move my domain to Shopify to connect it?

No. You can keep the domain registered where it is and only change its DNS records. Shopify calls this connecting an existing domain.

Will connecting Shopify break my email?

No, as long as you only change the A, AAAA and www records. Email uses MX and TXT records, which you leave as they are.

How long does it take for the domain to work with Shopify?

Shopify says it might take up to 48 hours for the domain to be fully live. Often it is much faster. Shopify also provisions the TLS (SSL) certificate as part of the connection.

My A record shows a different Shopify IP. Is that wrong?

Not necessarily. Shopify notes that after connecting, the A record may show a different host ID such as 23.227.38.32, and that this is still valid.