Skip to content
Deployment⏱️ 11 min read·

Point Your .com.np Domain to Vercel + Cloudflare DNS: Exact Records and Common Mistakes

Step-by-step tutorial on connecting your free .com.np domain to a Next.js or React website on Vercel using Cloudflare DNS. Fix nameserver propagation delays and resolve SSL redirect loops easily.

Need this on a server? See deployment and maintenance.

MN
Manoj NeupaneSoftware Developer & Programming Instructor
#.com.np#Vercel#Cloudflare#DNS#SSL#Next.js
🎯 Who This Tutorial Is For

📋 Prerequisites
  • ✓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)
1

Step 1: Add Your Domain to Cloudflare

1. Log into your free Cloudflare account and click **Add a site**. 2. Enter your domain: `yourname.com.np` and select the **Free Plan**. 3. Cloudflare will scan existing records and assign you two nameservers, for example: - `dane.ns.cloudflare.com` - `kristin.ns.cloudflare.com`
2

Step 2: Update Nameservers on register.com.np

1. Log into [register.com.np](https://register.com.np) with your credentials. 2. In your dashboard, locate your domain and click **Edit DNS**. 3. Replace the default or old nameservers with your Cloudflare nameservers: - **Primary Name Server:** `dane.ns.cloudflare.com` - **Secondary Name Server:** `kristin.ns.cloudflare.com` 4. Click **Update**. *Note: Mercantile updates nameserver delegations across their root servers twice daily. Propagation may take 2 to 12 hours.*
3

Step 3: Configure Cloudflare DNS Records for Vercel

In your Cloudflare DNS Management tab, add the following two DNS records:
⚠️ Warning— Important: Set Proxy to 'DNS only' During Verification

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.

TypeNameContent / TargetProxy StatusTTL
A@ (apex domain)76.76.21.21DNS only (Grey Cloud)Auto
CNAMEwwwcname.vercel-dns.comDNS only (Grey Cloud)Auto
4

Step 4: Fix Cloudflare 'Too Many Redirects' (Crucial)

If you enable the Cloudflare proxy (Orange cloud), visitors will likely see **ERR_TOO_MANY_REDIRECTS**. This happens because Cloudflare defaults to **Flexible SSL**, connecting to Vercel on HTTP (port 80). Vercel redirects back to HTTPS (port 443), creating an infinite loop. **The Fix:** 1. In Cloudflare, go to **SSL/TLS** in the left sidebar. 2. Change the encryption mode from **Flexible** to **Full (strict)**. 3. Your site will immediately load securely with Vercel's edge certificate.

✨ Expected Output & Verification

A high-speed, secure portfolio loading on your custom free .com.np domain with automatic HTTPS.

🧪 How to Test the Implementation

  1. 1Open your terminal and test DNS resolution: dig yourname.com.np +short
  2. 2Confirm it returns 76.76.21.21
  3. 3Open https://yourname.com.np in an incognito window to verify SSL certificate

⚠️ Common Errors & How to Fix Them

❌Vercel shows 'Invalid Configuration' for days

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