How to Connect Your Namecheap Domain to Route 53
Tags: aws, tutorial, learning
Published: 2023-05-06 13:39:06

So I'm guessing you just bought your first domain and like everyone else, you went with Namecheap, like the name implies 😉. But you want to leverage this domain beyond the regular static site hosting, you want this domain to exist on a cloud provider like AWS, Azure or GCP to name a few. Well if you intend to connect your domain to AWS (Route 53) then this guide is for you. 

&nbsp;

We begin by knowing what Route 53 is, why you would want to connect your domain to Route 53 and cap off with you making the connection.

&nbsp;


## What is Route 53

Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service. Route 53 connects user requests to internet applications running on AWS or on-premises. In essence a DNS turns domain names into IP addresses, which allow browsers to get to websites and other internet resources. I wouldn’t want to bore you with the technical jargon and such, so you can read more about [Route 53](https://aws.amazon.com/route53/).

&nbsp;

## Why Route 53

So I know you must be thinking why Route 53, Namecheap also has a DNS right?  Well you are right. If you don’t need the following:

- Global Routing: Route end users to your site reliably with globally-dispersed Domain Name System (DNS) servers and automatic scaling.


- Routing Policies: Customise your DNS routing policies to reduce latency, improve application availability, and maintain compliance.


- Readiness Checks: Ensure that your resources across Availability Zones or Regions are continually audited for recovery readiness.


- IP Based Routing: Fine-tune your DNS routing approach based on the Classless Inter-Domain Routing (CIDR) block that the query-originating IP address belongs to.

- And much [more...](https://aws.amazon.com/route53/features/).


In essence Route 53 goes way beyond what a basic DNS like Namecheap offers as such these are features which can help provide better product experiences for customers.

Enough talk, let's connect our domain to Route 53. 

&nbsp;

## Connecting Namecheap Domain to Route 53

I would assume you have already purchased a domain from Namecheap. If you do not have one [this guide](https://www.namecheap.com/support/knowledgebase/article.aspx/10072/35/how-to-register-a-domain-name/) would walk you through it. I would also assume you have an aws account set up and ready to go. 

&nbsp;

Note, I've blurred out sections just for security reasons. 

&nbsp;

Firstly you would sign into your AWS dashboard and navigate to Route 53 using the Search Bar. 


![Image of AWS Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzijom8pqbhhdyoo1mk6.png)

&nbsp;

In the Route 53 dashboard click on create hosted zone and input your domain name in the first field then click create hosted zone. Ensure you input the domain name without prefixes. So example.com not `http://example.com` or `www.example.com`


![Route 53 Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ch6bwsys5jwvwxjgkrk2.png)

&nbsp;


![Creating hosted zone on Route 53](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rs4qq3q3hb75p0hf2n9l.png)

&nbsp;

When it’s created you should get an image like this



![Route 53 hosted zone completed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4bqzft6cl4gn235lgxuw.png)

&nbsp;

Next you need to navigate to your Namecheap dashboard and click manage on the domain name you wish to connect. 


![Namecheap Dashboard](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ak28xj6fmps6vedviw9b.png)

&nbsp;

Click the dropdown on name servers and select custom dns 


![Namecheap dashboard - manage domain name](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8r30sv56ccvn0jji9q7k.png)

&nbsp;

Navigate back to Route 53 and copy the NS records, go back to Namecheap and enter the NS records in the Nameserver input field in order. 


![Namecheap dashboard - Mange custom dns](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0wafyza1nu2yrqw7m9f.png)

You then click  the green checkmark to save.

&nbsp;

And that’s it! You have successfully connected your Namecheap Domain to Route 53. However you should note that it takes 24-48 hours to fully propagate, so don’t expect it to work instantly. 

&nbsp;

You can go on to create several records like the A, CNAME, SRV, TXT and the likes  on Route 53.

&nbsp;

I’ll see you around!