I am attempting to move my company’s website over to Cloudflare. However, since we are a web developer, we often utilize subdomains of our main domain to run development and staging sites. These are currently served by the DNS server built into our cPanel WHM server.
Here is my issue: I’d like for Cloudflare to answer DNS queries for the root and www. subdomains, but then pass requests to other subdomains onto my existing DNS server. This should be possible with a wildcard NS record, which would serve to answer any queries to subdomains not in Cloudflare, but whenever I try to add one to Cloudflare I get a “DNS Validation Error (Code: 1004) DNS name is invalid.” error. Am I doing something wrong? And, if so, is there a better way to achieve what I am trying to do?