What are A Records and CNAME Records?
A records and CNAME records are DNS entries that tell the internet where to find your website. Think of them as forwarding instructions for your mail—they ensure visitors who type your domain name reach your actual Shopify store.
A Record (Address Record)
Points your domain directly to an IP address (a numerical server address like 23.227.38.65). This is the most direct routing method.
CNAME Record (Canonical Name)
Points your domain to another domain name, which then resolves to an IP address. It’s like a redirect that says “go look over there instead.”
When to Use Each Type
Use an A Record for:
- Your root domain (e.g.,
yourstore.com) - Situations where you need to point directly to Shopify’s servers
Use a CNAME Record for:
- Subdomains (e.g.,
www.yourstore.com,shop.yourstore.com) - When the destination IP address might change
Important: Root domains typically can’t use CNAME records (this is a DNS limitation). That’s why you need an A record for yourstore.com and a CNAME for www.yourstore.com.
Shopify’s Recommended DNS Settings
For a standard Shopify store setup:
Root Domain (yourstore.com)
Type: A Record
Host: @ (or blank)
Points to: 23.227.38.65
WWW Subdomain (www.yourstore.com)
Type: CNAME
Host: www
Points to: shops.myshopify.com
Step-by-Step Configuration
At GoDaddy
- Log into your account
- Go to My Products > Domains > DNS
- Add an A record: Host
@, Points to23.227.38.65 - Add a CNAME: Host
www, Points toshops.myshopify.com - Save changes
At Namecheap
- Log into your account
- Go to Domain List > Manage > Advanced DNS
- Add A Record and CNAME as specified above
- Save changes
At Cloudflare
- Log into your dashboard
- Select your domain > DNS
- Add the A and CNAME records
- Set proxy status to “DNS only” (gray cloud) for Shopify compatibility
Common Mistakes and Fixes
Using CNAME for Root Domain
CNAME records don’t work for root domains at most DNS providers. Use an A record instead, or use a provider that supports CNAME flattening (like Cloudflare).
Wrong IP Address
Shopify’s IP address is 23.227.38.65. Using an old or incorrect IP prevents your store from loading.
Conflicting Records
Having both an A record and CNAME for the same subdomain causes conflicts. Remove duplicates.
Forgetting the WWW
Many customers still type www.yourstore.com. Without the CNAME for www, these visitors get an error page.
Verifying Your Configuration
After making changes:
- Wait for DNS propagation (up to 48 hours, usually faster)
- Visit your domain in a browser
- Check Shopify Admin > Settings > Domains for connection status
- Use a DNS lookup tool to verify records are correct
How Recon Helps
Recon monitors your DNS configuration by:
- Verifying A records and CNAME records are correctly set for Shopify
- Detecting misconfigurations that prevent your store from loading
- Alerting you if DNS records change unexpectedly
- Providing step-by-step guidance for DNS setup at major registrars
FAQ
Q: How long until DNS changes take effect?
A: Usually within a few hours, but can take up to 48 hours. Don’t make additional changes during this period—give the original changes time to propagate.
Q: Can I point multiple domains to my Shopify store?
A: Yes. Each additional domain needs its own A and CNAME records pointing to Shopify. Then add the domain in your Shopify admin.
Q: What if my domain works but www doesn’t (or vice versa)?
A: You’re missing either the A record (root) or the CNAME (www). Check that both are configured correctly. Also verify Shopify shows both as connected in your domain settings.
Want us to monitor this for you?
Run a free brand security audit with Recon and see your vulnerabilities in minutes.
Run Free AuditRelated Articles
DNS Security for Shopify Merchants
Learn how DNS works and why proper configuration protects your Shopify store from impersonation attacks.
SSL Certificates: Securing Your Shopify Store's Connections
Understand SSL/TLS certificates, the padlock icon, and how secure connections protect your Shopify customers.
Subdomain Takeover: The Hidden Threat to Shopify Stores
Discover how abandoned subdomains become security vulnerabilities and how attackers exploit them to damage your Shopify brand.