← All writing

Hosting a .com.np domain for free with Cloudflare Pages

If you own a .com.np domain, you can host a fast personal blog with automatic HTTPS for $0/month using Cloudflare DNS and Cloudflare Pages.

Why Cloudflare works well for .com.np

Nepal's .com.np registrar (Mercantile) lets you configure nameservers, not individual A or CNAME DNS records. Pointing your nameservers to Cloudflare's free DNS unlocks full DNS management, free SSL certificates, and one-click integration with Cloudflare Pages.

Quick setup overview

  1. Add your domain to Cloudflare (Free plan): Create a free account at dash.cloudflare.com, add parashtimalsina.com.np, and note the two Cloudflare nameservers assigned to you.
  2. Update nameservers at register.com.np: Log into Mercantile, set the primary and secondary nameservers to the ones Cloudflare gave you, and wait for approval/propagation.
  3. Deploy to Cloudflare Pages: Connect your GitHub repository (or upload the dist/ folder directly) with build command python3 build.py and build output directory dist.
  4. Attach your custom domain: In your Cloudflare Pages project under Custom domains, add parashtimalsina.com.np. Cloudflare automatically configures DNS and provisions HTTPS.
ComponentCostNotes
.com.np domainFreeRegistered via Mercantile
Cloudflare DNSFreeManages DNS & SSL
Cloudflare PagesFreeUnlimited bandwidth for static sites