Different nameservers for subdomains

Hi there,

I’m trying to set up different nameservers for different subdomains of my domain.

  1. domain.com is registered at crazydomains.com
  2. In Crazydomains, I set bjorn.ns.cloudflare.com and surina.ns.cloudflare.com as the nameservers for domain.com
  3. In Cloudflare, I have domain.com set up as a site.
  4. In Cloudflare, I have setup subdomains for in.domain.com and mail.domain.com along with MX and TXT records for third-party email services etc…
  5. I now want to set up a wordpress website on my Namecheap hosting. For this, I’m instructed to change the nameservers for domain.com to Namecheap’s nameservers.

How can I set domain.com to point to Namecheap’s nameservers and have in.domain.com and mail.domain.com pointing to Cloudflare’s nameservers?

There’s no reason you need to use their nameservers just to use their hosting, and lots of reasons you shouldn’t do that.

When you add a domain to Namecheap hosting, they have the option to validate your control of the domain by adding a DNS record, or by creating a file on your website, instead of changing the nameservers.

The direct answer to your question is that you can’t really delegate the root domain without delegating the subdomains with it, because DNS is hierarchical. You could delegate a subdomain (like www) to another nameserver, if they let you set up a subdomain on their end, but again, this isn’t the best way to do it and you should prefer to just add the necessary DNS entries at Cloudflare.

@i40west thank you for your reply!

This was my understanding too but when I referred to their documentation it states otherwise.

Not sure what to do here.

Update: As per your info I contacted Namecheap support and they provided me the A record setup inside Cloudflare.

@i40west Thanks for helping me get this sorted!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.