How to Map a Hashnode Blog to your Domain using AWS Route 53

Search for a command to run...

As a developer working on AWS cloud, you may encounter having an S3 object that contains JSON or CSV content that you want to run a SQL query against it. You may have chosen to retrieve the entire object in your application and then filter out only t...

Recently I've been invited to the GitHub Copilot technical preview, and I can tell you it deserves all the attention it's getting! So first things first.. What is GitHub Copilot? GitHub Copilot is an AI pair programmer that helps you write code faste...

For Javascript projects, the node_modules folder is used to save all downloaded packages from npm locally in your computer. JS developers often complain that their hard drive is mysteriously always full. Every time you start a new (side) project and...

Imagine you are building a cool website. To see it, you can visit http://localhost:3000. The only problem is that the URL only works on your local computer. You could go out and buy a domain name, web server and SSL certificate then figure out how t...

Blogging on Hashnode is totally free and it is the easiest way to start a developer blog on your personal domain for free and connect with the readers through their global dev community! Everything from a custom domain mapping to faster edge caching to AMP and SSL is free forever.

So, if you already had your own domain registered on AWS then in a couple minutes you can map your blog to your custom domain with AWS Route 53 following the next steps.
If you already signed up before, log in then go to your "Blog Dashboard" then "Domain" from the sidemenu, then "Custom Domain" tab

http:// or https:// like "blog.basimhennawi.com" and click Next
You'll get this message to head over to your DNS provider which is AWS in your case

So you need to open a new tab and log in to your AWS Console account and navigate to Route 53 service, under Hosted zones from the sidemenu, and select your domain name, in this case "basimhennawi.com"

Then click Create record, in the wizard set Record name with the subdomain you want your blog to be, in this case blog, and:
A and value with 76.76.21.21 orCNAME and value with hashnode.network(Not recommended)If you use a DNS provider other than Route 53 for your domain name (like GoDaddy, Cloudflare, ...), then you might be able to point the domain to services hosted on AWS. Check if your DNS provider supports CNAME records on a root domain using techniques such as CNAME flattening, ANAME records, or WebHops redirection.

That's it! You are all set!
Usually DNS propagation happens quickly. However, in the worst case, it may take up to 24 hours.
Note: If you want to double-check or delete the domain mapping go to your "Blog Dashboard" then "Domain" tab from the sidemenu.

Now, happy writing!
I'd love for you to leave me a feedback below in the comments!