Skip to main content

How to Set Up a Custom Domain on Netlify (Beginner's Step-by-Step Guide for 2026)

Netlify gives every site a free URL like yoursite.netlify.app, but a custom domain like yourbusiness.com looks far more professional and trustworthy. The good news? Connecting your own domain to Netlify is completely free on the starter plan, and it takes about 30 minutes of actual work. The rest is just waiting for DNS to propagate across the internet. In this guide, you will go from zero to a fully live website with a custom domain and a free HTTPS SSL certificate. No technical experience is required. Just follow each step in order and you will be set up correctly without headaches or downtime.

What You Need

  • A Netlify account (free at netlify.com)
  • A deployed site already live on your Netlify subdomain (e.g., yoursite.netlify.app)
  • A custom domain purchased from a registrar like Namecheap, GoDaddy, Hostinger, or Name.com
  • Access to your domain registrar's dashboard to edit DNS records
  • A browser and about 30 minutes of active setup time

Step 1: Step 1: Purchase a Custom Domain from a Registrar

Before you touch Netlify, you need to own a domain. Netlify does not sell domains directly, so you buy one from a separate registrar. Go to a site like Namecheap, GoDaddy, Hostinger, or Name.com. Type your desired domain name into the search bar on their homepage to check if it is available. A standard .com domain costs between $8.88 and $20 per year depending on the registrar, with Hostinger sometimes offering first-year prices as low as $2.99. Once you find an available name, add it to your cart and complete the checkout. During checkout, look for an option called WHOIS privacy or domain privacy protection and enable it. This hides your personal contact information from public lookup tools. After purchase, you will land in your registrar's control panel or dashboard. Log in and confirm you can see your domain listed under My Domains. Do not make any DNS changes yet. Just confirm you have access. You will need to return to this dashboard in Step 4 to add Netlify's DNS records. Keep your registrar login credentials handy for later in this guide.

Pro Tip: Choose a short domain name without hyphens. It is easier to type, easier to say out loud, and better for branding long-term.

Namecheap

Beginner-friendly dashboard, .com domains from $8.88/year, and free WHOIS privacy included on every domain purchase.

Visit →

Step 2: Step 2: Deploy Your Site on Netlify First

Before adding a custom domain, you need a site actually deployed and running on Netlify. If you have not done this yet, go to netlify.com and click Sign up. You can create a free account using your email, GitHub, or Google account. Once logged in, click Add new site. You have two main options: connect a Git repository from GitHub, GitLab, or Bitbucket for automatic deployments, or drag and drop a folder of your built website files directly into Netlify's interface. If you are using a static site builder like Hugo, Gatsby, or plain HTML, the drag and drop method is the fastest way to get started. After your site is uploaded or built, Netlify assigns it a default URL that looks something like amazing-site-a1b2c3.netlify.app. Click that link and make sure your website actually loads correctly before moving forward. This is an important check because the custom domain will point to this exact deployed site. If the site is broken on the Netlify subdomain, a custom domain will not fix it. Only continue to Step 3 once your site is confirmed working on the .netlify.app URL.

Pro Tip: Netlify's free tier supports unlimited sites, which means you can test as many projects as you want without paying anything.

Netlify

Free tier includes custom domains, HTTPS, and global CDN delivery. No credit card required to get started.

Visit →

Step 3: Step 3: Add Your Custom Domain Inside Netlify

Now you will tell Netlify which domain you want to connect. Inside your Netlify dashboard, click on the specific site you want to configure. In the left sidebar, find and click Domain management. You will see a section called Custom domains. Click the Add domain button, then select Add a domain you already own. In the text field that appears, type your full domain name exactly as purchased. For example, type mywebsite.com for an apex domain, or www.mywebsite.com if you want to use the www version as your primary address. Click Verify, then click Add domain to confirm. Netlify will now show your domain with a status label that says Awaiting External DNS or Pending DNS verification. This is completely normal and expected at this stage. On the same page, Netlify will display the specific DNS records you need to add at your registrar. These records are customized for your account. For an apex domain like mywebsite.com, you will typically see an A record pointing to an IP address such as 75.2.60.5. For a www subdomain, you will see a CNAME record pointing to yoursite.netlify.app. Copy these values carefully because you will use them in the very next step.

Pro Tip: Take a screenshot of the DNS records Netlify shows you before leaving this page. You will need these exact values when you log into your registrar.

Netlify

Netlify displays exact DNS values tailored to your site, removing any guesswork about which records to enter.

Visit →

Step 4: Step 4: Update DNS Records at Your Domain Registrar

This is the most important technical step, but it is straightforward if you follow Netlify's instructions exactly. Log in to the dashboard of your domain registrar, the company where you bought your domain. Look for a section called DNS, DNS Management, Advanced DNS, or Nameservers in your domain settings. Netlify gives beginners two methods to choose from. The first method is External DNS, which is the recommended starting point. You keep your DNS at your registrar and simply add Netlify's records there. For an apex domain, add an A record. Set the host field to @ or leave it blank, and paste Netlify's IP address like 75.2.60.5 as the value. For a www subdomain, add a CNAME record. Set the host to www and the value to yoursite.netlify.app. Before adding new records, delete any older conflicting A or CNAME records for the same host to prevent errors. Save your changes. The second method, called Netlify DNS, involves changing your registrar's nameservers entirely to Netlify's four provided nameservers such as dns1.p01.nsone.net. This hands full DNS control to Netlify and is great for long-term simplicity. Use this method only if no other services like email are currently depending on your registrar's DNS settings.

Pro Tip: If you are unsure which method to pick, go with External DNS. It is safer for beginners because you keep control at your registrar without disrupting anything else.

GoDaddy

GoDaddy's DNS manager has a clear visual interface that labels each record type, making it easier for beginners to add A and CNAME records correctly.

Visit →

Step 5: Step 5: Wait for DNS Propagation to Complete

After saving your DNS records at the registrar, you need to wait. DNS propagation is the process of your new settings spreading across servers worldwide, and it can take anywhere from a few minutes to 48 hours depending on your registrar and your internet provider's caching. Go back to your Netlify Domain management page and watch the status next to your custom domain. It will change from Pending DNS verification to a green Active status once everything is confirmed. Once your domain goes active, Netlify automatically requests and installs a free SSL certificate from Let's Encrypt, which is what gives your site the HTTPS padlock in the browser. You do not need to do anything manually for SSL. To check propagation progress, open whatsmyDNS.net in a new tab, enter your domain name, and select the A or CNAME record type to see which regions have already picked up the new settings. You can also test your site by opening your custom domain in an incognito or private browser window, which avoids local caching issues. If your domain is still not resolving after 48 hours, revisit your DNS records for any typos in the host or value fields.

Pro Tip: On Windows, open Command Prompt and run ipconfig /flushdns to clear your computer's local DNS cache so you can test your domain faster without waiting for your machine to update.

whatsmyDNS.net

Free tool that shows you whether your DNS records have propagated across different countries and ISPs in real time.

Visit →

Step 6: Step 6: Confirm HTTPS Is Active and Set Your Primary Domain

Once DNS propagation completes and your domain shows as Active in Netlify, there are two final checks to complete. First, confirm that HTTPS is working. Visit your domain in a browser and look for the padlock icon in the address bar. The URL should begin with https:// not http://. Netlify provides this SSL certificate free through Let's Encrypt and renews it automatically. If you see a certificate warning instead, wait a few more hours because certificate provisioning sometimes lags slightly behind DNS activation. Second, check that your custom domain is set as the primary domain in Netlify. In Domain management, your primary domain should be listed at the top with a Primary badge. If it is not, click the three-dot menu next to your custom domain and select Set as primary domain. The primary domain is what Netlify uses for your production branch and for SEO canonical URLs. Also confirm that Netlify redirects traffic properly. For example, visiting the www version should redirect to the apex version or vice versa depending on your preference. Netlify handles these redirects automatically once the primary domain is set correctly.

Pro Tip: Netlify auto-renews your Let's Encrypt SSL certificate every 90 days without any action needed from you. You will never receive a bill or expiry warning for SSL.

Netlify

Netlify handles SSL provisioning, renewal, and HTTPS redirects entirely in the background so you never manage certificates manually.

Visit →

Step 7: Step 7: Optional — Switch to Netlify DNS for Easier Long-Term Management

If you want the simplest possible ongoing management of your domain settings, consider switching to Netlify DNS. This means changing the nameservers at your registrar from your registrar's default servers to Netlify's four nameservers, which look like dns1.p01.nsone.net, dns2.p01.nsone.net, dns3.p01.nsone.net, and dns4.p01.nsone.net. You will find your exact nameservers listed in the Netlify Domain management panel after adding your domain. Once you update these nameservers at your registrar, all DNS records are managed directly inside Netlify's dashboard rather than at your registrar. This is convenient because you never need to log into two separate places to make DNS changes. Netlify DNS also enables advanced features like automatic ALIAS records for apex domains and integrated load balancing. The trade-off is that if you use your domain for email services like Google Workspace or Microsoft 365, you will need to re-enter those MX and TXT records inside Netlify's DNS panel instead of your registrar. For most beginners running a simple website with no email hosting, Netlify DNS is the cleanest long-term setup.

Pro Tip: Before switching nameservers, write down all existing DNS records in your registrar's panel. This prevents you from accidentally losing email or other service configurations.

Netlify

Netlify DNS centralizes all your domain management in one dashboard and unlocks advanced CDN and subdomain features that external DNS cannot provide.

Visit →

Common Mistakes to Avoid

Using an A record for a www subdomain instead of a CNAME record

Fix: Use A records only for apex domains like mywebsite.com. For www.mywebsite.com, always use a CNAME record pointing to yoursite.netlify.app as Netlify instructs.

Forgetting to delete old conflicting DNS records before adding new ones

Fix: Before adding Netlify's A or CNAME records, delete any existing A, AAAA, or CNAME records for the same host name in your registrar's DNS panel to avoid conflicts.

Typing the DNS values manually instead of copying them exactly from Netlify

Fix: Always copy Netlify's IP addresses and target values directly using copy and paste. Even a single character typo will cause the domain to fail.

Testing the domain too soon and assuming something is broken

Fix: DNS propagation takes up to 48 hours. Use whatsmyDNS.net to monitor real progress rather than refreshing your browser and assuming it is broken after 10 minutes.

Not setting the custom domain as the primary domain in Netlify

Fix: Go to Domain management in Netlify, click the three-dot menu next to your custom domain, and select Set as primary domain. This ensures correct SEO canonicalization and proper redirects.

Switching to Netlify DNS when email services are already configured on the domain

Fix: If you use Google Workspace, Microsoft 365, or any email service tied to your domain, note down all existing MX and TXT records before switching nameservers, then re-add them inside Netlify DNS.

Frequently Asked Questions

Yes, adding a custom domain to Netlify is completely free on the Starter plan. Netlify does not charge you to connect your own domain. You only pay your registrar the annual domain registration fee, which is typically $8.88 to $20 per year for a .com. Netlify also provides a free Let's Encrypt SSL certificate automatically, so HTTPS costs nothing extra either.

DNS propagation typically takes between 15 minutes and 48 hours. Most users see their domain go active within 1 to 4 hours. The variation depends on your domain registrar's update speed and how long your internet service provider caches old DNS records. Use whatsmyDNS.net to check progress across different global locations while you wait.

No, you do not need to do anything to enable HTTPS. Once your custom domain's DNS records are verified and active, Netlify automatically provisions a free SSL certificate from Let's Encrypt within minutes. It also renews the certificate automatically every 90 days. The padlock icon will appear in your visitor's browsers without any manual work on your part.

External DNS means you keep your DNS records managed at your registrar and simply add Netlify's A or CNAME records there. Netlify DNS means you change your nameservers to Netlify's so that all DNS records are managed inside Netlify's dashboard instead. External DNS is safer and easier for beginners with existing services on their domain. Netlify DNS is more convenient for long-term management if your domain is used only for your website.

Yes, Netlify works with domains from any registrar, including Namecheap, GoDaddy, Hostinger, Name.com, Google Domains, and others. As long as you can log into your registrar's dashboard and edit DNS records, you can connect your domain to Netlify. You do not need to transfer your domain away from your current registrar unless you specifically want to use Netlify DNS.

Conclusion

Setting up a custom domain on Netlify takes about 30 minutes of actual work, plus some waiting time for DNS to propagate. Once it is done, your site is live with a professional custom URL, free HTTPS, and Netlify's global content delivery network. The most important things to remember are to copy DNS values exactly from Netlify, delete conflicting old records at your registrar, and be patient during propagation. After setup, Netlify handles SSL renewal automatically so there is nothing left to maintain.

You Might Also Like