Wildcard domains for multiple sites

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.

For example I’d want to set up these sites like this:
fw-happy-paws.netlify.app → happypaws.mydomain.com
fw-acme-demo.netlify.app → acmedemo.mydomain.com

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?

Yeah. You could create a CNAME to anything.netlify.app The part before netlify.app doesn’t matter, it could be any valid DNS string.

Thanks for your response! I might not be asking the right questions… let me see if I can rephrase.

We have a top-level domain (mydomain.com) which contains multiple records on our DNS provider. One of those records right now looks like this:

name: *.mydomain.com
type: CNAME
value: cname.vercel-dns.com.

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:

name: happypaws.mydomain.com
type: CNAME
value: fw-happy-paws.netlify.app

name: acmedemo.mydomain.com
type: CNAME
value: fw-acme-demo.netlify.app

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?}

I think I understood you the first time and the answer remains the same. You can use anything.netlify.app as the value for your wildcard entry.