- ✓An approved .com.np domain on register.com.np
- ✓A website deployed on Vercel
- ✓A free Cloudflare account
🚀 What You Will Learn & Build
- ▸How to set Cloudflare nameservers on the Mercantile register.com.np portal
- ▸Exact A and CNAME records needed for Vercel apex and www domains
- ▸How to prevent the dreaded ERR_TOO_MANY_REDIRECTS loop in Cloudflare
- ▸Checking DNS propagation using terminal tools (dig/nslookup)
Step 1: Add Your Domain to Cloudflare
Step 2: Update Nameservers on register.com.np
Step 3: Configure Cloudflare DNS Records for Vercel
When initially verifying your domain in Vercel, set the Cloudflare proxy to DNS Only (Grey cloud). Once Vercel issues the Let's Encrypt certificate and marks the domain as Valid Configuration, you can re-enable the Orange cloud if desired.
| Type | Name | Content / Target | Proxy Status | TTL |
|---|---|---|---|---|
| A | @ (apex domain) | 76.76.21.21 | DNS only (Grey Cloud) | Auto |
| CNAME | www | cname.vercel-dns.com | DNS only (Grey Cloud) | Auto |
Step 4: Fix Cloudflare 'Too Many Redirects' (Crucial)
✨ Expected Output & Verification
A high-speed, secure portfolio loading on your custom free .com.np domain with automatic HTTPS.
🧪 How to Test the Implementation
- 1Open your terminal and test DNS resolution: dig yourname.com.np +short
- 2Confirm it returns 76.76.21.21
- 3Open https://yourname.com.np in an incognito window to verify SSL certificate
⚠️ Common Errors & How to Fix Them
Root Cause: Mercantile nameserver changes have not been submitted or Cloudflare proxy is blocking certificate challenge.
Fix: Set records to 'DNS only' in Cloudflare and verify nameservers using 'whois yourdomain.com.np' or dig NS.
🛡️ Security Considerations & Best Practices
- !Enable Cloudflare 'Always Use HTTPS' and 'Automatic HTTPS Rewrites' under SSL/TLS edge certificates.
❓ Frequently Asked Questions (FAQ)
Yes. In Cloudflare DNS, add a CNAME record with Name 'blog' pointing to cname.vercel-dns.com.
📌 Summary of Key Takeaways
Point your .com.np nameservers to Cloudflare, add Vercel's A and CNAME records, and set SSL encryption to Full (strict) to eliminate redirect loops.
Official References & Further Reading
Written by Manoj Neupane
AuthorSoftware developer and programming instructor, Nepal
Building software systems and SaaS platforms with Laravel, Next.js, and Node.js. Passionate about helping students and developers in Nepal master practical, real-world development skills.