I'm so excited to start blogging that I even bought a new domain for this. Props to hashnode for making this blogging thing so easy to setup. Everything works beautifully out of the box without much hassle. The only configuration you will need to setup is connecting your domain and hashnode.
So, to start off, let's write about something related to setting up a domain name for my blog: A record vs CNAME record. I never really took the time to understand these DNS terms in depth, however, sometimes they will come in handy so I will leave a short summary here:
- You need to setup either A record or CNAME record to connect between your domain (eg: example.com) to hashnode's servers
- A record : map from a name (example.com) to an IP address (x.x.x.x)
- CNAME record: map from a name (example.com) to another name (example2.com)
Now, if you buy your domain from Google Domains like me, you will run into a problem because Google Domains does not allow setting up A record at the root level (so cannot map
@ to example.com)
However, there exists a workaround using CloudFlare's DNS (which supports A record at root level). You can check it out here: hashnode.com/post/how-to-set-up-a-custom-do..