Connecting a custom domain to Shopify takes 5-15 minutes by configuring DNS A records (23.227.38.65) and CNAME records (shops.myshopify.com). Having your own domain increases credibility by 84%, improves SEO, and strengthens branding compared to using a subdomain like myshopify.com.

Why do you need a custom domain on Shopify?

A custom domain is essential for credibility, SEO, and professional branding.

  • Credibility: example.com conveys professionalism; example.myshopify.com seems temporary
  • Improved SEO: Owned domains have greater authority and better ranking on Google
  • Consistent branding: Reinforces brand identity across all channels
  • Customer trust: 84% of consumers do not buy from sites without their own domain (Verisign 2024)
  • Professional email: Use emails @yourdomain.com instead of generic Gmail
  • Portability: You maintain your domain and SEO authority if you change platforms.

Options for Obtaining a Domain

You have two options: buy from Shopify or connect an external domain.

Option 1: Buy a Domain on Shopify

  • Advantages: Automatic configuration, centralized management
  • Cost: $14 USD/year for .com
  • Process: Admin → Settings → Domains → Buy new domain
  • Ideal for: Beginners with no technical experience

Option 2: Connect External Domain

  • Advantages: You maintain your existing domain, and have greater DNS control.
  • Requires: Manual configuration of DNS A and CNAME records
  • Ideal for: Those who already have a domain from GoDaddy, Namecheap, etc.

How to Connect an External Domain: Step by Step

Step 1: Add Domain to Shopify

  1. Go to Settings → Domains
  2. Click Connect existing domain
  3. Enter your domain (example: yourstore.com)
  4. Shopify will display the necessary DNS records.

Step 2: Configure DNS Records

Add these two records to your domain provider:

A record (root domain)

  • Type: A Record
  • Host: @
  • Value: 23,227,386.5
  • TTL: 3600

CNAME Registry (www)

  • Type: CNAME
  • Host: www
  • Price: shops.myshopify.com
  • TTL: 3600

Important: Delete existing A or CNAME records for @ and www before adding the new ones.

Step 3: Verify Connection

  1. Return to Shopify → Settings → Domains
  2. Click on Verify connection
  3. If it is successful, you will see a "Connected" status.

Step 4: Establish Primary Domain

  1. In Settings → Domains, click Change primary domain
  2. Select example.com or www.example.com
  3. Shopify will automatically redirect all variants

DNS Configuration by Provider

GoDaddy

  1. Log in to GoDaddy.com
  2. Go to My Products → Domains → DNS
  3. Add record A: Type: A, Name: @, Value: 23.227.38.65
  4. Add CNAME record: Type: CNAME, Name: www, Value: shops.myshopify.com
  5. Remove conflicting records (parking page)

Namecheap

  1. Log in to Namecheap.com
  2. Go to Domain List → Manage → Advanced DNS
  3. Add record A: Host: @, Value: 23.227.38.65
  4. Add CNAME record: Host: www, Value: shops.myshopify.com
  5. Remove Parking Page and URL Redirect

Google Domains (Squarespace)

  1. Log in to domains.squarespace.com
  2. Go to DNS → Manage custom records
  3. Add record A: Host: @, Data: 23.227.38.65
  4. Add CNAME record: Host: www, Data: shops.myshopify.com

Cloudflare

  1. Go to DNS → Records
  2. Add record A: Name: @, IPv4: 23.227.38.65, Proxy: DNS only (gray)
  3. Add CNAME record: Name: www, Target: shops.myshopify.com, Proxy: DNS only
  4. Critical: Disable Shopify SSL proxy (gray cloud)

DNS Propagation Times

DNS changes require global propagation time.

  • Minimum: 15 minutes to 1 hour
  • Average: 4-8 hours
  • Maximum: Up to 48 hours

Verify Propagation

  • WhatsMyDNS.net: Verify from multiple global locations
  • DNSChecker.org: Checks A and CNAME records
  • Terminal: nslookup yourdomain.com or dig yourdomain.com

During Propagation

  • Do not make any additional changes
  • Flush DNS cache: Windows (ipconfig /flushdns), Mac (sudo dscacheutil -flushcache)
  • Use incognito mode to check
  • Wait 24 hours before troubleshooting

Automatic SSL Certificate

Shopify generates free SSL certificates automatically using Let's Encrypt.

SSL Process

  1. Shopify begins SSL generation after verifying domain
  2. It takes 24-48 hours after DNS propagation.
  3. Automatic renewal every 90 days
  4. You'll see a green padlock when it's active.

Verify SSL

  • Shopify: Settings → Domains → badge "SSL secured"
  • Browser: Green padlock in address bar
  • SSL Labs: ssllabs.com/ssltest for full analysis

HTTPS Redirection: Shopify automatically redirects HTTP to HTTPS without additional configuration.

Subdomains and International Domains

Connect Subdomains

  1. In Shopify: Settings → Domains → Connect existing domain
  2. Enter the complete subdomain (store.example.com)
  3. In DNS: Add CNAME: Host: store, Value: shops.myshopify.com

International Domain Names (IDNs)

  • Shopify supports special characters (ñ, ü, é)
  • Configuration identical to standard domains
  • Automatic conversion to Punycode

Multiple Domains

  • Up to 10 domains per store (20 with Shopify Plus)
  • All redirect to the main domain via 301
  • Define a primary domain for SEO

Troubleshooting: Common Problems

"Domain is already connected to another Shopify store"

Solution:

  1. Disconnect previous store domain (Settings → Domains → Remove)
  2. If you don't have access, contact Shopify Support with proof of ownership.
  3. Wait 24 hours before reconnecting

"We couldn't verify your domain"

Solution:

  1. Verify that the A (23.227.38.65) and CNAME (shops.myshopify.com) records are accurate.
  2. Remove conflicting records (parking pages, redirects)
  3. Wait 24-48 hours for propagation
  4. Use WhatsMyDNS.net to verify

"SSL pending" for more than 48 hours

Solution:

  1. Verify correct DNS records
  2. If you have CAA records, add: 0 issue "letsencrypt.org"
  3. In Cloudflare, disable proxy (gray cloud)
  4. Disconnect and reconnect domain

Blank Page or Error 404

Solution:

  1. Clear browser cache (incognito mode)
  2. Clear local DNS cache
  3. Check which topic is published
  4. Check that the store is not password protected.

Infinite Redirection (301 Loop)

Solution:

  1. Remove URL forwarding at domain provider
  2. Use only A and CNAME records, no HTTP redirects
  3. On Cloudflare, disable the proxy completely.
  4. Check apps that can create redirects

It works without WWW but not with WWW

Solution:

  1. Verify that you have BOTH records: A for @ and CNAME for www
  2. The CNAME file must point to shops.myshopify.com (not IP address).
  3. Wait for full propagation
  4. Set primary domain in Shopify

Transfer Domain to Shopify

Requirements

  • Domain with more than 60 days since registration
  • Domain unlocked at current provider
  • EPP code/Auth code of the provider
  • Accessible administrative email

Process

  1. Unlock domain and get EPP code
  2. In Shopify: Settings → Domains → Transfer domain
  3. Enter EPP code
  4. Confirm by email
  5. Please allow 5-7 business days
  6. Shopify charges $14 USD for an additional year

Advantages

  • Centralized management
  • Automatic DNS configuration
  • Simplified renewal
  • Unified support

Disadvantages

  • Without email hosting (requires Google Workspace or similar)
  • Fewer advanced DNS options
  • A transfer is required if you change platforms.

Professional Email with your Domain

Shopify does not offer email hosting. It uses external services:

Google Workspace

  • Cost: $6 USD/month per user
  • Includes: Gmail, Drive (30GB), Calendar, Meet, Docs
  • Configuration: Add MX records to DNS

Microsoft 365

  • Cost: $6 USD/month per user
  • Includes: Outlook, OneDrive (1TB), Office apps

Zoho Mail

  • Cost: Free plan for up to 5 users, starting at $1 USD/month
  • Ideal for: Startups with limited budgets

Best Practices

Choose the Correct Domain

  • Short and memorable (maximum 15 characters)
  • Relevant to your brand
  • Appropriate extension (.com global, .mx Mexico, .es Spain)
  • Avoid hyphens and numbers

Configure Primary Domain

  • Decide www vs no-www (recommended: no www)
  • Shopify automatically redirects variants
  • Use your primary domain on social media

Protect your domain

  • Activate Domain Lock
  • WHOIS Privacy
  • Two-factor authentication
  • Automatic renewal

Monitor Health

  • Verify SSL monthly
  • Check DNS quarterly
  • Monitor uptime (UptimeRobot)
  • Confirm active automatic renewal

Optimize for SEO

  • Include relevant keywords if it's natural
  • Do not change domains unnecessarily (accumulated authority)
  • Check for a clean history (archive.org)
  • Configure 301 redirects if you change your domain

Conclusion

Connecting a custom domain to Shopify is essential for credibility and SEO. By following this step-by-step guide, you'll complete the setup in 15 minutes. Your domain is your most valuable digital asset: choose wisely, configure it correctly, protect it with appropriate security, and monitor its health regularly. A well-configured domain increases conversions, builds customer trust, and strengthens your brand in the long run.

Jesús Antonio Luquín Machuca
Escrito por

Jesús Antonio Luquín Machuca

CEO · CODEFLOW

Soy un desarrollador enfocado en Shopify y optimización de conversiones (CRO), con una fuerte inclinación hacia la creación de tiendas en línea que destaquen tanto en rendimiento como en conversión. Aporto una combinación de habilidades en desarrollo y estrategias de CRO para que cada tienda que desarrollo no solo f...

  • SEO técnico, Shopify Plus Expert, CRO Strategist, GEO, Hydrogen