How to Set Up DNS and HTTPS for Shopify
What DNS records a Shopify store with your own domain needs, how its HTTPS certificate is issued, and how to fix the usual problems with redirects, CAA and email.
10 min readUpdated Nov 27, 2026By XPASS Editorial Team

When a store runs on a hosted platform such as Shopify, two technical jobs remain with you even though the platform runs the servers. You must make your domain name lead to the platform, which is DNS, and you must make sure that the connection is encrypted with a certificate that matches your name, which is HTTPS. Shopify handles most of the second job on its own, but only if the first is set up cleanly. Most of the problems people report, such as a missing padlock, a store that opens on one name but not the other, or a pending connection that never completes, trace back to a record that is wrong, duplicated or blocked.
This guide explains what happens behind the scenes and what to do at each point. It follows a sensible order: understand the two jobs, set the records, understand how the certificate is obtained, choose the primary name and redirects, check your work, and then look after email and other services that share the domain. If you are comparing with a self-hosted shop, the guide on DNS and HTTPS for WooCommerce shows the same ideas with more manual steps, and the companion for plain sites is DNS and HTTPS for WordPress.
Two jobs on a hosted platform
DNS is the directory that turns a name into an address. It is described in RFC 1034: a resolver asks the authoritative servers for your domain, and they answer with records. For a Shopify store, the records say "visitors to this name should go to Shopify's servers". The platform then has to recognise the name and show your store, which it does once you have added the domain in its admin.
HTTPS is HTTP inside an encrypted TLS connection; the Cloudflare explainer on HTTPS is a clear introduction. A certificate proves that the server answering for your name is entitled to do so. On a hosted platform you do not generate keys or upload files. Instead the platform requests a certificate for your name once it can see that your DNS points to it.
The practical consequence is an order of operations. First the records, then a short wait, then the certificate. If the padlock is missing, the answer is nearly always in the DNS, not in the store settings.

The DNS records for a Shopify store
Open the DNS panel of whoever hosts your DNS and look at what exists. A typical connected store needs these:
| Record | Host | Value | Purpose |
|---|---|---|---|
| A | @ (bare name) | the address shown in your Shopify admin | Sends visitors of the bare name to the platform |
| CNAME | www | the hostname shown in your Shopify admin | Sends visitors of www to the platform |
| MX | @ | your mailbox provider's servers | Mail for your domain, unrelated to the store |
| TXT | @ and others | SPF, DKIM, DMARC and verification values | Mail sender checks and ownership proofs |
| CAA | @ | optional; authorities allowed to issue | Must not block the platform's authority |
Always copy the values from the admin screen, because platform addresses can change over time and the admin is the authoritative source.
Rules that prevent most problems
- One destination per name. If an older A record pointing to a previous host still exists for the bare name, remove it. Two answers lead to a random mixture of old and new.
- Mind AAAA records. An AAAA record sends IPv6 visitors somewhere. If it is left over from an earlier host, those visitors reach the old server even though the A record is right.
- A CNAME cannot live on the bare name. The DNS rules forbid a CNAME beside the other records a root name has, such as MX and SOA, so the bare name uses an A record while www uses a CNAME.
- Do not mix a CNAME with other records on the same host. A host with a CNAME should have nothing else.
- Switch off parking and forwarding. Registrar features that redirect or park the name compete with your records.
Lower the TTL before you change
TTL is the number of seconds that resolvers keep an answer. A long TTL means a mistake or a correction takes a long time to be visible. A few hours before you edit, set it to something short such as five to ten minutes. Raise it again once the store is stable.
Where your DNS is managed
A domain can be registered in one place and have its DNS answered in another; the nameserver setting at the registrar decides who answers. There are three common situations.
DNS at the registrar. You edit the records in the registrar's panel. This is the simplest case when the domain only serves the store and a mailbox.
DNS at a hosting company or separate DNS service. The registrar's nameservers point elsewhere. Edit the records at that provider, not at the registrar, or nothing will change. This is a classic cause of "I changed it but nothing happened".
DNS at the platform. It is possible to hand the whole zone to the platform by changing the nameservers. That gives the platform control over every record, so you must make sure your mail and other records are recreated there before you switch, or they disappear.
For the first two, keep a list of records before and after every change. If you need a name to begin with, the domains page is the place to search for and manage one.
HTTPS, the primary domain and redirects
Once the records are right and the domain is connected in the admin, the platform asks a certificate authority to issue a certificate for your names. The process is automated; the protocol is ACME, specified in RFC 8555, and How Let's Encrypt works describes the idea in plain language. The authority checks that your name really points to the platform and then signs the certificate. Renewal is automatic as well, as long as the records stay correct.
What can block issuance
- Conflicting records. Old A or AAAA records that send part of the traffic elsewhere.
- A restrictive CAA record. CAA lists which authorities may issue certificates for the domain. If your zone has one that does not include the platform's authority, issuance fails. Either remove the CAA record or add the authority that your platform uses; the platform's help pages say which one.
- A proxy or forwarding layer in front of the domain. If another service answers the validation request instead of the platform, the check fails.
- DNSSEC problems. If DNSSEC is switched on at the registrar but the zone is no longer signed correctly after a nameserver change, resolvers may reject answers. See the introduction to DNS security in RFC 4033 if you manage this yourself; otherwise ask your DNS provider.
- Waiting. Even with everything right, issuance may take some time after connection.
Primary domain and redirects
Choose one primary name in the Domains settings of the admin. The platform redirects the other name to it. Use the primary form consistently in advertising, marketplace listings and email footers so that customers and search engines see one address. Also check that the default address ending in myshopify.com redirects to the primary name. If a certificate warning appears only on one of the two names, that name is probably missing from the certificate or from the DNS records.
Checking your own work
You do not have to guess what DNS says. Use a lookup tool or the command line to query the records. On a computer, the command nslookup or dig followed by your domain and the record type shows the answer a resolver gives. Check three things:
- The A record of the bare name matches the value in the admin.
- The www name resolves through a CNAME to the platform's hostname.
- No AAAA record points somewhere unexpected.
Then check HTTPS in a browser. Click the padlock and look at the certificate details: the name should match, the issuer should be an authority, and the dates should be current. Try the http version and confirm it redirects to https without a loop. Finally, test from a phone on mobile data, which uses different resolvers from your home network and shows whether the change has spread.
Email, subdomains and other services
The domain is shared by more than the store, so be careful with the rest of the zone.
Email. Mail depends on MX records for delivery and on SPF, DKIM and DMARC TXT records for trust. None of them should change when you point the store at the platform. If you ever replace the nameservers, copy every mail record first. If you want a mailbox on your own name, ask your mail provider how a mailbox works with a domain; it is a separate piece from the store itself.
Subdomains. A blog, a help centre or an account portal may live on a subdomain such as blog.example.com. Each subdomain has its own record and can point somewhere completely different from the store. Remember that each such service needs its own certificate arrangement.
Verification records. Search consoles, ad platforms and email tools often ask for a TXT record to prove ownership. These are independent of the store. Do not delete them during a clean-up unless you know what they are for.
Apps and sender addresses. Marketing and shipping apps may ask for DNS records to send mail from your domain. Add them as new records; do not overwrite the existing SPF record, but combine the entries into one, because a domain should have a single SPF record.

A plain example
Nina runs a small shop selling ceramic mugs and has just connected her own domain to Shopify. The admin shows an A record and a CNAME for www. She enters both at her registrar, but a day later the padlock still has a warning on the bare name.
She looks at the zone. There are two A records for the bare name: the new one and an old one from her previous website. There is also an AAAA record left from the old host. She deletes the old A and AAAA records. She also notices a CAA record that allows only one specific authority, which she added years ago for her blog. She checks the platform's help page, sees which authority the platform uses, and edits the CAA record to add it.
Then she lowers the TTL, waits half an hour, queries the records from her computer, and sees only the platform's address. The next morning the certificate is active and the padlock is closed on both names. She sets the bare name as primary, sends a test order notification to her mailbox, and confirms that the MX and SPF records were never touched.
Troubleshooting common problems
| Symptom | Likely cause | What to try |
|---|---|---|
| Admin says the domain is not connected | Records not spread, or old records still present | Remove old A, AAAA and CNAME records, wait for the TTL, verify again |
| Store works on www but not on the bare name | The A record is missing or wrong | Add or correct the A record with the admin's value |
| Certificate warning on one name only | That name is missing from DNS or the certificate | Check both names resolve to the platform and wait for issuance |
| Padlock never appears | CAA blocks it, or a proxy intercepts validation | Adjust CAA, remove forwarding or proxy layers |
| Too many redirects | A redirect elsewhere conflicts with the platform's | Remove registrar forwarding, keep one redirect rule |
| Mail stopped after a DNS change | MX or TXT records were removed | Restore the mail records exactly as before |
| Changes seem to have no effect | You edited DNS at the wrong provider | Check which nameservers are active, edit there |
Limits and what to watch for
- You do not control the platform's certificate. If a certificate is wrong, you can only fix what you control: the records. Contact the platform's support if the records are correct and the certificate still does not appear after a reasonable wait.
- DNS changes are not instant. Allow time before concluding something is broken, and avoid editing repeatedly.
- Platform details change. Addresses, hostnames and menu names are decided by the platform. Treat this article as an explanation of the principles and follow your own admin for current values.
- Renewal of the domain. If the domain lapses, the store disappears from that name, and the certificate cannot be renewed. Keep automatic renewal on and the contact email current.
- Keep records of the original state. If you move to another platform, the same records are rewritten. For a self-hosted shop the steps in the WooCommerce guide linked above apply, and for a website builder see DNS and HTTPS for Wix.
Summary
For a Shopify store with your own domain, DNS points visitors at the platform and the platform issues the HTTPS certificate once it can see the right records. Use the A and CNAME values from your admin, remove old and conflicting A, AAAA and CNAME records, check that CAA does not block issuance, and avoid proxies or forwarding in front of the domain. Choose a primary name, verify the result with a lookup and a browser, and keep MX and TXT records intact so email continues. Change one thing at a time and wait for caches before concluding anything.
When you are ready to choose or manage the domain behind the store, you can start from the domains page.
Frequently asked questions
Do I need to buy an SSL certificate for a Shopify store?
Normally no. Once your DNS records point at Shopify correctly, the platform arranges a certificate for the connected domain automatically. Issuance can take a while after the records are right.
Why is my Shopify domain showing a certificate warning?
The certificate may not have been issued yet, or something blocks it: conflicting A or AAAA records, a restrictive CAA record, or a proxy or forwarding service in front of the domain.
Should I use the bare domain or www?
Either works. Pick one as the primary domain, let the other redirect to it, and use that form consistently in links, listings and advertising.
Can I keep my email when I point my domain at Shopify?
Yes, as long as you only change the A and www records and keep the MX and TXT records for your mailbox provider. Copy every mail record first if you ever change nameservers.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Ready to register your domain?
Search a name, compare extensions and pay once for the years you choose.
.com registration from $18.81 for the first year
Search domainsKeep reading

Domain & DNS Guides
How to Set Up DNS and HTTPS for WooCommerce
What DNS records a WooCommerce shop needs, how to get and renew an HTTPS certificate, and how to avoid redirect loops, mixed content and broken checkout pages.
10 min read

Domain & DNS Guides
DNS and HTTPS Setup for Wix: What to Configure
Which DNS records does a Wix site need, and why does the padlock sometimes fail to appear? A practical guide to records, redirects and certificates.
10 min read

Domain & DNS Guides
How to Set Up DNS and HTTPS for WordPress
A clear guide to the DNS records and HTTPS settings behind a WordPress site: A, AAAA, CNAME and CAA records, certificates, redirects, mixed content and checks after launch.
10 min read