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.
Steps
- Register on Hashnode by going to hashnode.com, create a new account and after filling in your name, title, email and blog's name you will be asked, where do you want this blog to open? Choose I will use my domain
If you already signed up before, log in then go to your "Blog Dashboard" then "Domain" from the sidemenu, then "Custom Domain" tab
- Enter your domain name:´ without
http://
orhttps://
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:- "Record type" with
A
and value with76.76.21.21
or - "Record type" with
CNAME
and value withhashnode.network
(Not recommended)
- "Record type" with
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.
- Then click Create Records
- Now go back to Hashnode tab, and hit I've added the records button.
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!