Setting up your existing domain

The purpose of this guide is to provide you with general instructions for configuring an existing domain purchased through a third party for Shopify. You'll find setup instructions for the most popular domain providers, but we recommend buying your custom domain through Shopify if you want your setup done for you.

After you've purchased your third-party domain, there are two steps you need to take when you configure your domain in Shopify.

To connect an existing domain to Shopify you need to:

  1. Add the domain to Shopify
  2. Log into your domain provider and set up your root domain and subdomains.


If you buy your custom domain through Shopify, the settings will be configured for you.

You will find setup instructions for some common domain providers, but you should read these general instructions first so you have a broad understanding of the process before you begin.


Shopify Support is not allowed to log in to your third-party domain account for you, even if you give us explicit permission.

If you have problems or need help setting your third-party domain, you can reach out to your provider.

Add an existing domain to your Shopify store

Before you set up your root domain and your subdomains, you need to add the domain to your Shopify store. This step identifies you to Shopify as the owner of your custom domain.

To add your domain, you need to add your custom root domain and each of your subdomains. The procedure is the same in every case:

  1. From your Shopify admin, click Online Store, and then click Domains (or press G W D).

  2. Click Add existing domain:

    Gd add existing domain

  3. Enter your root domain in the text field:

    Gd root domain

  4. Click Add domain.

  5. Now you need to add your subdomains.

For each subdomain that you want to pair with your Shopify store, repeat this process.


It may take up to 72 hours for your custom domain to point to your Shopify store. If it takes more than 72 hours, you should contact your custom domain provider.

Set up your root domain

If you've purchased your domain through third party, then you need to set up your root domain. This means that you need to edit your DNS settings and point your A record to Shopify's IP address, which is

Editing your A Record

You need to edit your A record to assign Shopify's IP address to the root domain you bought from your third-party provider.

To edit your A record:

  1. Log in to the account you have with your domain provider.

  2. Find your DNS settings. Look for your account admin panel, or your domain management area, or DNS configuration, or similar.

  3. Now you need to edit your A Record. If you can see your records, the A record might be shown separately from your other DNS records. It's often represented by an @ symbol, or occasionally by a blank field. These indicate that a DNS record is referring to a root domain.

    The admin panel might feature drop-downs or editable fields, or you might have to check boxes or edit a table. However you interact with the admin, you need to:

    • enter or choose the @ symbol, or A record
    • supply Shopify's IP address ( as the destination for the A record.
  4. If you see a TTL field and it's editable, set the TTL to 30. seconds (or the smallest value allowed).

  5. Save the A Record (click Save, Save Zone File, Add Record, or similar.)

Example of an A record

Here is an example of an A record setting:

Godaddy ip update


An A record must point only to an IP address, never to a domain.

Set up your subdomains

You need to redirect every subdomain you want to use to your own Shopify-hosted domain (

You do this by editing your DNS records to add a CNAME record for each of your subdomains.


Use this method if you want your online store to reside on a subdomain.

To help you understand some of the terminology, we’ve provided you with definitions of common terms about domains.


A subdomain is a subset of your root domain that you see as a prefix to your root domain. For example, in the URL, is the root domain and help. is the subdomain. You can use subdomains to organize your website and make it easier for visitors to find the information that they're looking for.

CNAME record

A CNAME record is a DNS setting that points your subdomains to another domain name. In this case, you want your CNAME record to point to your Shopify-hosted domain (

Other terms: CNAME resource record, Alias

To set up a subdomain:

  1. Log in to your account with your domain provider.

  2. Find your DNS settings by looking for your account admin panel, your domain management area, DNS configuration, or similar.

    You might be able to open the settings and view your current DNS records. Each entry should show:

    • an original location (often listed in a column called Name, Host, or Alias)
    • the type of the record (for example, CNAME)
    • the destination the record is pointing to.
  3. Now you need to add a CNAME Record or update an existing one.

    The admin panel might feature drop-downs or editable fields, or you might have to check boxes or edit a table. You'll need to make sure the 3 components of the record are set:

    Enter the original location for the pointer. In this case, it is your subdomain prefix. You can use any prefix you'd like, for example:

    • www
    • shop
    • store


    Often, you need to provide just the prefix without the dot, but for some domain providers you need the whole subdomain. Use the existing entries as a guide, or follow your provider's instructions.

    • Make sure the record you're creating is called CNAME (or sometimes canonical name). You might need to select it from a list of options.
    • Enter your Shopify-hosted domain name (for example as the pointer destination. The field or column that you have to type into might be called something like Value, Points to, or Destination.
  4. If you see a TTL field and it's editable, set the TTL to 30. seconds (or the smallest value allowed).

  5. Save the CNAME Record (usually by clicking Save or Add record or similar.)

  6. Each domain provider displays their DNS records in different ways, but you should check that your CNAME record has been set correctly.


CNAME records must always point to a domain name, never to an IP address.

CNAME example

Here's an example of a CNAME setting:

Godaddy 6

What's next?

After you've added your domain in Shopify, you need to choose your primary domain (the domain name that customers will see in the address bar while they browse your online store).

You can also set up email forwarding from the domain after you've added it to Shopify.

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free