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.
On this page
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) | Type | Value | Notes |
|---|---|---|---|
@ | A | 23.227.38.65 | Only one A record on the root |
@ | AAAA | 2620:0127:f00f:5:: | Some hosts need the long form 2620:0127:f00f:0005:0000:0000:0000:0000 |
www | CNAME | shops.myshopify.com | Shopify 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
@andwwwrecords 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.comandwww.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.
- Sign in, open My domains and click the domain.
- Click Manage DNS records.
- Delete conflicting rows: any existing A or AAAA record with the name
@, and any existing record with the namewww. - Click "Preset: point to an IP". It adds two rows: an A record for
@and a CNAME forwww. - In the A row, replace the placeholder IP with
23.227.38.65. - In the
wwwrow, replace the value (your own domain) withshops.myshopify.com. Enter it without the trailing dot. - Click + Add record and add the AAAA row: name
@, type AAAA, value2620:0127:f00f:5::. - 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:
| Name | Type | Value |
|---|---|---|
@ | A | 23.227.38.65 |
@ | AAAA | 2620:0127:f00f:5:: |
www | CNAME | shops.myshopify.com |
Step 2: Connect the domain in Shopify
Per Shopify's article:
- In the Shopify admin, go to Settings → Domains.
- Click Connect existing domain.
- Enter your root domain without
www.(for exampleexample.com) and click Next. - 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:
| Command | Expected answer |
|---|---|
dig example.com A +short | 23.227.38.65 and nothing else |
dig example.com AAAA +short | 2620:127:f00f:5:: (shown in short form) |
dig www.example.com CNAME +short | shops.myshopify.com. |
dig example.com MX +short | Your 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
| Problem | Likely cause | Fix |
|---|---|---|
| Shopify says the records are wrong | An old A or AAAA record on @ is still there | Delete every A/AAAA on @ except Shopify's |
www doesn't connect | An old www A record or CNAME is still there, or a typo in the CNAME | Keep a single www CNAME to shops.myshopify.com |
Our editor rejects a CNAME on @ | A CNAME can't be used on the root domain | Use the A (and AAAA) record for @; the CNAME only goes on www |
| The AAAA value is rejected | Some hosts don't accept the short IPv6 form | Use 2620:0127:f00f:0005:0000:0000:0000:0000 |
The A record later shows 23.227.38.32 | Shopify assigned a different host ID | Shopify says this is still valid |
| Email stopped | MX records deleted along with the website records | Restore the MX and SPF records from your email provider's setup page |
| Still showing the old site | DNS cache | Wait 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.