How to Set Up a Custom Domain for Your Website

To set up a custom domain for your website, register a domain name, then either update your nameservers to point to your website platform (simplest option for Squarespace, Wix, or Shopify) or add specific A and CNAME records at your registrar pointing to your hosting server's IP address. DNS propagation completes in 24–48 hours, after which your custom domain goes live.

Key takeaways

Table of contents

  1. Overview
  2. What Is a Custom Domain?
  3. What You Need Before You Start
  4. Understanding How Domain Connection Works
  5. Step-by-Step: How to Connect Your Domain to Common Platforms
  6. Setting Up www vs. Non-www
  7. Setting Up SSL After Connecting Your Domain
  8. Troubleshooting Common Custom Domain Setup Issues
  9. Expert Verdict
  10. Frequently Asked Questions
  11. Start with the Right Domain

How do I connect a domain I already own to my website?

Log into your domain registrar and either change the nameservers to those provided by your website platform (recommended for Squarespace, Wix, Shopify) or add the specific A and CNAME records provided by your platform. The platform's setup guide provides the exact values to enter. Changes propagate within 24–48 hours.

How long does it take for a custom domain to work after setup?

Most users see their custom domain working within 2–4 hours of making DNS changes. Full global propagation takes up to 48 hours. You can speed up propagation by lowering your domain's TTL (Time to Live) to 300 seconds before making changes, though this requires 48 hours of notice before it takes effect.

Do I need to buy SSL separately for my custom domain?

No. All major website platforms (Squarespace, Wix, Shopify, Webflow, WordPress.com) provide free SSL certificates via Let's Encrypt and activate HTTPS automatically within 1–24 hours of a successful domain connection. For self-hosted WordPress, your hosting provider typically provides free SSL via Certbot or a one-click installer in cPanel.

What is the difference between changing nameservers and adding DNS records?

Changing nameservers moves all DNS management to your website platform — simpler but less flexible. Adding DNS records (A, CNAME, MX) at your registrar keeps DNS management at your registrar — more flexible but requires manually entering each record. Use nameservers for all-in-one platforms; use DNS records when you need to run email, subdomains, or other services independently.

Why did my email stop working after I connected my domain?

Email stopped working because you changed nameservers and the new DNS provider doesn't have your email MX records. When you change nameservers, all DNS records — including email records — must be recreated at the new location. Log into your website platform's DNS management, find the MX records required by your email provider, and add them there.

Can I use a custom domain with a free website plan?

Most website platforms require a paid plan to use a custom domain. Squarespace, Wix, Shopify, and WordPress.com all require a paid subscription to connect an external domain. Some platforms like GitHub Pages (for static sites) allow custom domains for free. Check your specific platform's plan requirements before purchasing a domain.

What happens if I set up my domain incorrectly?

An incorrect DNS configuration typically results in one of three outcomes: the domain shows a generic registrar page (wrong nameservers), a "site not found" error (missing or incorrect A record), or the www version doesn't work (missing CNAME). None of these are permanent — simply correct the DNS records or nameservers and propagation restores normal function within a few hours. ---

Strategy12 min read

How to Set Up a Custom Domain for Your Website

Learn how to set up a custom domain for your website step by step. Connect your domain to any website builder, hosting platform, or CMS with this guide.

بقلم DomainDiscoveryدليل تعليمي · أدوات مجانية
how to set up a custom domainStrategy

إجابة مختصرة

ما يغطيه هذا الدليل

To set up a custom domain for your website, register a domain name, then either update your nameservers to point to your website platform (simplest option for Squarespace, Wix, or Shopify) or add specific A and CNAME records at your registrar pointing to your hosting server's IP address. DNS propagation completes in 24–48 hours, after which your custom domain goes live.

نقاط أساسية

  • 1A custom domain is a web address that you own and control, registered through a domain registrar. It replaces the default URL that website builders assign automatically.
  • 2Generic URL: "yourstore.myshopify.com" → Custom domain: "yourstore.com"
  • 3Custom domains make your brand look professional, improve trust with visitors, and significantly help with SEO — search engines treat custom domains as more credible than subdomains of third-party platforms.
  • 47. Back in Webflow, click Publish and then Check DNS Records
  • 5Best practice: Pick one as your primary (most modern sites prefer the non-www "example.com") and redirect the other to it automatically.

Overview

To set up a custom domain for your website, register a domain name, then either update your nameservers to point to your website platform (simplest option for Squarespace, Wix, or Shopify) or add specific A and CNAME records at your registrar pointing to your hosting server's IP address. DNS propagation completes in 24–48 hours, after which your custom domain goes live.

What Is a Custom Domain?

A custom domain is a web address that you own and control, registered through a domain registrar. It replaces the default URL that website builders assign automatically.

Examples:

Generic URL: "yourstore.myshopify.com" → Custom domain: "yourstore.com"

Generic URL: "mysite.wordpress.com" → Custom domain: "mysite.com"

Generic URL: "mybiz.squarespace.com" → Custom domain: "mybiz.com"

Custom domains make your brand look professional, improve trust with visitors, and significantly help with SEO — search engines treat custom domains as more credible than subdomains of third-party platforms.

What You Need Before You Start

Before you can connect a domain to your website, you need two things:

1. A registered domain name: If you don't have one yet, register it through a reputable registrar. Prices typically range from $8–$20 per year for a .com domain.

2. A hosting platform or website builder: This is where your website lives. Examples include Squarespace, Wix, WordPress.com, WordPress.org (self-hosted), Shopify, Webflow, GitHub Pages, or a traditional hosting provider like SiteGround or Bluehost.

Understanding How Domain Connection Works

When you connect a custom domain to your website, you're telling the internet's DNS (Domain Name System) to point your domain to the server where your website is hosted.

There are two main methods:

Method 1: Change Nameservers (Full DNS Control)

You change your domain's nameservers to point to your website platform. The platform then manages all your DNS settings.

Best for: Squarespace, Wix, Shopify, and other all-in-one platforms that offer to manage DNS for you.

Pros: Simpler, platform handles the technical details.

Cons: You give up DNS control — harder to add third-party email or other DNS records.

Method 2: Update DNS Records at Your Registrar (Keep DNS at Registrar)

You keep your domain's DNS at your registrar and add A records, CNAME records, or other records provided by your hosting platform.

Best for: WordPress self-hosting, Webflow, or any situation where you want to maintain full DNS control for email, subdomains, and other services.

Pros: Full control, flexible.

Cons: Slightly more technical setup.

Step-by-Step: How to Connect Your Domain to Common Platforms

Connecting a Domain to Squarespace

1. Log into your Squarespace account

2. Go to Settings → Domains

3. Click Use a Domain I Own

4. Enter your domain name and click Connect

5. Squarespace provides you with nameserver values (typically "ns1.squarespace.com" and similar)

6. Log into your domain registrar

7. Navigate to Nameservers in your domain settings

8. Replace the existing nameservers with Squarespace's nameservers

9. Save changes and wait 24–48 hours for DNS propagation

Connecting a Domain to WordPress.com

1. Log into WordPress.com

2. Go to My Site → Upgrades → Domains

3. Click Use a Domain You Already Own

4. Enter your domain

5. WordPress.com shows you which DNS records to add (or offers to manage nameservers)

6. Either update your nameservers or add the A/CNAME records at your registrar

7. Wait for propagation (usually 15 minutes to 24 hours)

Connecting a Domain to Shopify

1. From your Shopify admin, go to Settings → Domains

2. Click Connect Existing Domain

3. Enter your domain name

4. Shopify displays the records you need to add at your registrar:

5. - An A record pointing to Shopify's IP address

6. - A CNAME record for "www" pointing to "shops.myshopify.com"

7. Log into your registrar and add these records

8. Back in Shopify, click Verify Connection

9. Wait up to 48 hours for full propagation

Connecting a Domain to Wix

1. In your Wix dashboard, go to Settings → Domains → Connect Domain

2. Choose Connect a Domain You Already Own

3. Enter your domain and click Connect

4. Wix will ask whether you want to update nameservers (recommended) or point with DNS

5. If updating nameservers: update them at your registrar to Wix's servers

6. If pointing with DNS: add the Wix-provided A record and CNAME at your registrar

7. Return to Wix and click Refresh

8. Wait 24–72 hours for full propagation

Connecting a Domain to Webflow

1. In the Webflow designer, go to Project Settings → Hosting → Custom Domain

2. Add your custom domain (e.g., "example.com")

3. Webflow displays the DNS records you need to add:

4. - An A record for the apex domain (@)

5. - A CNAME record for "www"

6. Log into your registrar and add these records

7. Back in Webflow, click Publish and then Check DNS Records

8. Wait for DNS propagation

Connecting a Domain to Self-Hosted WordPress (cPanel Hosting)

This is the most flexible setup but requires a few more steps.

1. Log into your hosting control panel (cPanel, DirectAdmin, etc.)

2. Find your hosting server's IP address (usually displayed on the main dashboard)

3. Log into your domain registrar

4. In DNS management, find your domain's A record

5. Update the A record to point to your hosting server's IP address

6. Also add a "www" CNAME record pointing to your domain (@)

7. Wait for DNS propagation (1–48 hours)

8. Install WordPress via your hosting panel's one-click installer

9. During installation, set your domain as the WordPress site URL

Setting Up www vs. Non-www

Most websites need to work with both the "www" version and the bare/apex version of their domain.

Best practice: Pick one as your primary (most modern sites prefer the non-www "example.com") and redirect the other to it automatically.

Most website platforms handle this redirect automatically when you connect your domain

If you're self-hosting, you can configure this redirect in your web server settings (Apache or Nginx) or through your DNS provider

Setting Up SSL After Connecting Your Domain

Modern websites require SSL (HTTPS), and the good news is that most platforms provide free SSL automatically through Let's Encrypt.

Steps to enable SSL after domain connection:

1. Wait for DNS propagation to complete

2. On most platforms (Squarespace, Webflow, Shopify, etc.), SSL activates automatically within 1–24 hours

3. On self-hosted WordPress, install a plugin like Really Simple SSL or use your host's built-in SSL tool

4. Verify your site loads with "https://" in the address bar

5. Set up HTTPS redirect so "http://" automatically redirects to "https://"

Troubleshooting Common Custom Domain Setup Issues

Domain shows "site not found" after setup: DNS propagation is still in progress. Wait 24–48 hours.

SSL certificate not issuing: Make sure your DNS records are correct and propagated. SSL can't issue until the domain resolves to the correct server.

www version doesn't redirect: Configure a CNAME record for "www" if your platform doesn't handle it automatically.

Email stopped working after changing nameservers: When you change nameservers, all DNS moves to the new provider. Re-add your email MX records at the new nameserver location.

Expert Verdict

Connecting a custom domain to a website is one of the most universally beneficial technical operations a business owner can perform. The credibility gap between a site at "yourbrand.com" and "yourbrand.wordpress.com" is significant in the eyes of both search engines and human visitors — and the technical barrier to crossing it is smaller than almost anyone imagines.

The single most important decision in the setup process is choosing between nameserver transfer and direct DNS record management. For users on all-in-one platforms like Squarespace, Wix, or Shopify, nameserver transfer is unambiguously the simpler path — the platform manages everything, propagation happens in the same 24–48 hour window, and SSL activates automatically. The only meaningful downside is reduced flexibility for adding third-party services that require custom DNS records.

For users on self-hosted platforms or anyone who needs granular DNS control (for custom email, CDN configuration, or multiple subdomains), keeping DNS at the registrar and adding specific A and CNAME records is the correct approach. This requires matching the exact record format provided by the hosting platform — a typo in an A record IP address or a misformatted CNAME is the most common source of failed domain connections. Copy and paste from the platform's documentation rather than typing IP addresses manually.

Frequently Asked Questions

How do I connect a domain I already own to my website?

Log into your domain registrar and either change the nameservers to those provided by your website platform (recommended for Squarespace, Wix, Shopify) or add the specific A and CNAME records provided by your platform. The platform's setup guide provides the exact values to enter. Changes propagate within 24–48 hours.

How long does it take for a custom domain to work after setup?

Most users see their custom domain working within 2–4 hours of making DNS changes. Full global propagation takes up to 48 hours. You can speed up propagation by lowering your domain's TTL (Time to Live) to 300 seconds before making changes, though this requires 48 hours of notice before it takes effect.

Do I need to buy SSL separately for my custom domain?

No. All major website platforms (Squarespace, Wix, Shopify, Webflow, WordPress.com) provide free SSL certificates via Let's Encrypt and activate HTTPS automatically within 1–24 hours of a successful domain connection. For self-hosted WordPress, your hosting provider typically provides free SSL via Certbot or a one-click installer in cPanel.

What is the difference between changing nameservers and adding DNS records?

Changing nameservers moves all DNS management to your website platform — simpler but less flexible. Adding DNS records (A, CNAME, MX) at your registrar keeps DNS management at your registrar — more flexible but requires manually entering each record. Use nameservers for all-in-one platforms; use DNS records when you need to run email, subdomains, or other services independently.

Why did my email stop working after I connected my domain?

Email stopped working because you changed nameservers and the new DNS provider doesn't have your email MX records. When you change nameservers, all DNS records — including email records — must be recreated at the new location. Log into your website platform's DNS management, find the MX records required by your email provider, and add them there.

Can I use a custom domain with a free website plan?

Most website platforms require a paid plan to use a custom domain. Squarespace, Wix, Shopify, and WordPress.com all require a paid subscription to connect an external domain. Some platforms like GitHub Pages (for static sites) allow custom domains for free. Check your specific platform's plan requirements before purchasing a domain.

What happens if I set up my domain incorrectly?

An incorrect DNS configuration typically results in one of three outcomes: the domain shows a generic registrar page (wrong nameservers), a "site not found" error (missing or incorrect A record), or the www version doesn't work (missing CNAME). None of these are permanent — simply correct the DNS records or nameservers and propagation restores normal function within a few hours. ---

Start with the Right Domain

A custom domain setup is only as good as the domain you're connecting. Choosing a strong, memorable, and available domain name is the first step.

Use DomainsDiscovery.com to check domain availability and compare prices across registrars instantly. Find your perfect custom domain, compare pricing across providers, and get your professional online presence started today.

جرّب أدوات DomainDiscovery

DomainDiscovery بحث مجاني عن النطاقات مع قوائم جغرافية وWHOIS وفحص جماعي ومقارنة أسعار، دون حساب.

تابع القراءة