Overcame my fear towards web development, I finally have a domain

All because of my bòi-san, I had an urge to buy a domain for myself at about 7am… So tada, now this blog has domain vtrnnhlinh.me, so cool eh? It costed me 2.5 dollars, hehe. The price after the discount isn’t that horrible to me, hopefully I can manage that less than 20$ in next years… Okay, so in this post I will write a short experience how to configure my Github Pages with the domain I purchased on NameCheap. I don’t dare to call it is a tutorial, as you can find all informations in GitHub documentations.

Not to waste your time, here is the official documentation so you can take it, below is my personal view: About custom domains and GitHub Pages.

1. Buy domain on NameCheap

Because bòi-san told me they were having a discount, so so… I planned to have a custom domain for a long time, but because I am really really not good at web development in general so I was afraid to do 😄

But still, I visit NameCheap to look up for the domain price. There are a lot of registrars like GoDaddy, Cloudflare,… So do your research and pick the cheapest one :wink:

I used a VISA card for the payment, if you don’t have any international payment method, you should find a VN provider.

2. Setup on NameCheap

Here is the fun part, I decided to use Cloudflare as my DNS configurator, so NameCheap is only used as the domain registrar.

  • From DOMAIN > NAMESERVERS, I input the 2 nameservers Cloudflare provided.
  • ADVANCED DNS > DNSSEC, I turn on and input value Cloudflare provided.

3. Setup on Cloudflare

I add total 5 DNS records:

  • 4 A records for below IP addresses:
    185.199.108.153
    185.199.109.153
    185.199.110.153
    185.199.111.153
    
  • 1 CNAME record for .github.io site.

I can manage how AI Agents interactive with my site, I think this is a point make Cloudflare worth using than NameCheap

4. Setup on GitHub

Because we deploy by GitHub Actions, so we don’t need CNAME file in the repo. Repo > Settings > Code, planning, and automation > Pages > Custom domain

Also tick the enforce HTTPS!

You also should verify the domain, Profile Settings > Code, planning, and automation > Pages > Add a domain and follow the tutorial to verify your ownership to that domain.


So that’s all, kinda simple and it is working now as you can see my blog domain ^^




Enjoy Reading This Article?

Here are some more articles you might like to read next: