DEV Community

Cover image for Setting up Domain with Namecheap & Netlify
Ekunola Ezekiel
Ekunola Ezekiel

Posted on • Updated on • Originally published at blog.ezekielekunola.com

Setting up Domain with Namecheap & Netlify

In this article, I would be showing how to connect a Namecheap domain to an application deployed with Netlify.

The first step is to have Netlify and Namecheap accounts setup. Once that has been done, go ahead and purchase your domain on Namecheap and also deploy your application to Netlify.

Note: It is assumed that you have an application hosted on Netlify and that you've also purchased your domain on Namecheap.

After purchasing your domain on Namecheap, navigate to your dashboard you should see the purchased domain there. Click on the manage button on the far right corner of the domain.

Namecheap Dashboard

Scroll down to the NAMESERVERS section, click on the dropdown and change it from Namecheap BasicDNS to Custom DNS. See example in the image below

Namecheap DNS

Navigate to your application on Netlify and click on the Domain Settings or Setup Custom Domain

Domain Settings

Add your domain in the input field and click on the verify button. Netlify would try to validate the domain.

Add domain name

After adding the domain, click on the options dropdown to the right of the domain you just added, and select Set Up Netlify DNS. See example in the image below

Netlify DNS Setup

Click through till you get to the point where Netlify shows a list of Nameservers. See example in the images below

Netlify Dns Setup

Netlify Dns Setup

Netlify Dns Setup

Navigate back to Namecheap, and copy each of the DNS servers one at a time to the NAMESERVERS section of Namecheap. After adding them, click on the check icon to the right to save them. See example in the image below

Namecheap Custom Dns

And that's it, we're done. You would need to wait for 1–5 minutes for Netlify to propagate, after that your web page can now be accessed by the custom domain.

Netlify will issue your domain free SSL certificates, so you would not need to worry about setting up HTTPS on your own.

This article was originally published on my blog.

Latest comments (61)

Collapse
 
rossbrannigan profile image
Ross Brannigan

Great! Thanks.

Collapse
 
moiraleon profile image
Moira Leon

SO helpful, thank you!

Collapse
 
larsvdd profile image
Lars van de Donk

That simple.
Thanks!

Collapse
 
alchemist21 profile image
Louell Sala • Edited

Hi I have a question. I also used netlify as domain and the host namecheap. I recently brought private email from namecheap and inorder fo receive the emails, based on the instruction, I need to change the nameserver from custom to namecheap basic dns. I'm getting confused

Collapse
 
pedrasoftware profile image
Pedra

Hey, I am having the same issue. How did you solve it? Thanks!

Collapse
 
drewkiimon profile image
Andrew Pagan

Thank you so much!

Collapse
 
lemenio profile image
Lemenio • Edited

Really nice post, I appreciate your effort for such a straight forward ones. Keep it up!!!

Collapse
 
angelathedev profile image
Angela McByrd

This article was super helpful! Thanks!

Collapse
 
zeeson profile image
Zeeson

Used this for the second time. Great job man!

Collapse
 
maqsudtolipov profile image
Maqsud Tolipov

Thank you, I have just deployed my website 👍

Collapse
 
niiknikk profile image
niiknikk

how can i do this using namecheap basic dns instead of using custom dns

Collapse
 
1nusah profile image
Inusah Said

Simple and precise content. How do you deal with deploying to subdomains?

Collapse
 
navaking profile image
Giovanni Nava

Was wondering, during the setup netlify DNS, is this the only time where we would get the chance to set up an A record?

Collapse
 
prox__centauri profile image
zin

Thank you so much. It was such a great article. Short and sweet.

Is there a way to add a subdomain to netlify or namecheap in a way that points to two different websites?

I got a site.. let's say coolbeans.com

So, I have a gatsby site that's hosted on netlify and I pointed the nameservers from namecheap coolbeans.com to netlify so the main site works.

But I want to create a subdomain called buy.coolbeans.com and point it to a landing page software site like leadpages or clickfunnels.

Is this possible to do? I couldn't find anything on this while I was researching.

Collapse
 
djmissmills profile image
Lorraine

Hi Zin. Did you figure this out? I need to do the same thing

Collapse
 
paularah profile image
Paul Arah

Yes. go to the DNS settings -> DNS panel. Then create a new subdomain record and point it to the either main domain or the one netflify issues you

Collapse
 
eybarta profile image
eyalb

What about namecheap email setup? will changing the nameservers to netlify disrupt the email service? thx!

Collapse
 
jamesoyanna profile image
James Oyanna

Thank you Ezekiel, this was helpful.