DEV Community

Martin
Martin

Posted on

How to Setup a Hashnode Blog Sub Domain on Netlify

So you have a your own personal website hosted on Netlify, but want to start writing like I am and create a blog using Hashnode ? How does one do that and is it possible to setup a custom sub domain with Hashnode? The answer is yes.

  1. Login into your Netlify account and click on the domain app you want to setup a subdomain. I am choosing martinpatino.com.

Screen Shot 2021-08-31 at 9.09.12 PM.png

  1. Click on Domain Settings button Screen Shot 2021-08-31 at 9.15.38 PM.png

3.Under Domains and click on ** Go to DNS Panel** on the domain you want to target.
Screen Shot 2021-08-31 at 9.19.16 PM.png

  1. Next just click on "Add a New Record" and enter the following DNS Settings and in the fields available just fill out the following
Record Type: CNAME

Name: blog or any subdomain of your choice

Value: hashnode.network
Enter fullscreen mode Exit fullscreen mode

Result:

Screen Shot 2021-08-31 at 9.24.52 PM.png

That is pretty much it for Netlify so congrats on this part. Now all that is left is complete the setup on Hashnode side.

  1. Under Domains in the dashboard settings you will just add custom domain such as blog.martinpatino.com. The DNS propagation can take up 24 hours to complete.

Screen Shot 2021-08-31 at 9.41.43 PM.png

You can see blog.martinpatino.com now hosting Hashnode custom subdomain blog ☕

Top comments (5)

Collapse
 
mouatezbenariba profile image
Elmouatez Billah Benariba

Thank you so much!

Collapse
 
timonwa profile image
Timonwa Akintokun

Nice article. Really helpful.

Collapse
 
thisguymartin profile image
Martin

Thanks :)

Collapse
 
davemarong profile image
Dave Kjell Marong

Thanks to you, Netlify and Hashnode for making my life easier.

Collapse
 
vramanalj profile image
Venkataramana

Thank you!