Hello! We’re currently in the process of moving a monorepo off Vercel to Netlify. Each of our sites we’re creating on Netlify are from the same git repo, but each site is built off its own app folder (app/site1, app/site2, etc). So far, all seems well.
The one area that I’m not entirely clear on is how to replicate our DNS setup here on Netlify. Each of the sites on our account should be served from a different subdomain of our main domain, mydomain.com, which is registered through an external DNS provider.
Is it possible to set up *.mydomain.com to be used for any of our Netlify sites? We are going to have potentially hundreds of sites so it would be inefficient to have to set up each individual subdomain to point to its single Netlify site. On Vercel we were able to do this with a CNAME record for *.mydomain.com pointing to cname.vercel-dns.com. - is there an equivalent way to do this in Netlify?
This has allowed us to use any mydomain.com subdomain for any site we’ve set up in Vercel without having to add a new entry on our DNS provider to point to a specific site.
In the Netlify documentation, everything I am reading seems to suggest that we would need to set up CNAME records for each subdomain, pointing to each of our netlify.app sites individually, like so:
Is there an equivalent use case where we can set up a CNAME for *.mydomain.com, point it to a single value (that’s not just a single one of our sites), and be able to create the sites with unique subdomains in Netlify without having to configure DNS every time? Like:
name: *.mydomain.com
type: CNAME
value: {what would this value be?}