Developers wanting to attach their custom brand domain (including free Nepali .com.np domains) to their Vercel deployment.
- ✓A deployed Next.js or React app on Vercel
- ✓A registered domain name (from Namecheap, Cloudflare, or register.com.np)
- ✓Access to your DNS management console
🚀 What You Will Learn & Build
- ▸Configuring root (Apex) vs subdomain records for Vercel
- ▸Vercel's official IP address (76.76.21.21) and CNAME (cname.vercel-dns.com)
- ▸Bridging a Nepali .com.np domain through Cloudflare DNS to Vercel
- ▸Setting up automatic canonical redirects (e.g. non-www to www)
1. Adding the Domain in Vercel Project Settings
2. Required DNS Records for Vercel
| Type | Name / Host | Value / Target | TTL |
|---|---|---|---|
| A | @ (root) | 76.76.21.21 | Auto / 3600 |
| CNAME | www | cname.vercel-dns.com | Auto / 3600 |
3. Special Note for Cloudflare Users
✨ Expected Output & Verification
Vercel dashboard displays a green checkmark: "Valid Configuration". Visiting https://yourname.com.np serves your application with a valid TLS certificate.
🧪 How to Test the Implementation
- 1Run `dig +short A yourdomain.com` in terminal to confirm it returns 76.76.21.21
- 2Run `curl -I https://yourdomain.com` to verify HTTP 200 and server header 'Vercel'
⚠️ Common Errors & How to Fix Them
Root Cause: DNS records have not propagated yet, or conflicting old A records exist.
Fix: Remove any old hosting IP addresses and wait 5 to 15 minutes for DNS caches to update.
🛡️ Security Considerations & Best Practices
- !Always configure an automatic redirect from non-www to www (or vice versa) to prevent duplicate SEO penalties.
❓ Frequently Asked Questions (FAQ)
Yes! Because register.com.np requires nameservers, first point your .com.np domain to Cloudflare nameservers, then add Vercel's DNS records inside Cloudflare.
📌 Summary of Key Takeaways
- ✓Point root domain to 76.76.21.21 and www to cname.vercel-dns.com.
- ✓Vercel manages SSL certificates automatically.
Official References & Further Reading
- 🔗Vercel Custom Domains Documentation— Official step-by-step custom domain guide from Vercel.
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.