Unable to Get Wildcard Subdomains Working on Free Plan with Custom Domain

Hello Netlify community,
I’ve purchased a custom domain from Hostinger and successfully pointed it to my Netlify site by changing the nameservers to Netlify’s. The main domain (e.g mydomain.shop) works perfectly, but I’m having trouble getting wildcard subdomains e.g (*.mydomain.shop) to work.

I have added a CNAME record with name * and points it to one of my netlify site. The main domain mydomain.shop is working fine but when i try to access my site with anyword.mydomain.shop i am getting 404 error, I want to ask do wildcards are allowed in free plan?

So now questions are, Is wildcard subdomain support available for free plans?

Are there specific DNS settings or configurations I need to apply either in Netlify or in Hostinger to make this work?

Any guidance on how to resolve this would be greatly appreciated!

Wildcard subdomains aren’t enabled by default and can only be enabled from our end. There are also a few requirements before we’re able to do so:

  • Either you have to use Netlify DNS so we can get you a wildcard SSL cert, or you must bring a custom wildcard certificate.
  • We can only do this for a site that’s on a paid team (see Pricing and Plans | Netlify for details)

Also note:

You can’t use domain aliases on the site with Wildcard subdomains enabled, just the bare domain and subdomains under your primary domain. If you try to add a domain alias then it won’t work.
The primary custom domain for the site, if it is a example.com with www.example.com setting in our UI, must be www.example.com and not example.com!

Once the wildcard subdomain feature is enabled, you do not need to add new subdomains under the site settings. You’ll will need still need to create DNS records.

This might be a single wildcard DNS record for all subdomains (like a CNAME for *.example.com pointing to the netlify.app subdomain for the site). Alternatively, you can also create the individual DNS records to add each subdomain (like CNAMEs for subdomain-a.example.com, subdomain-b.example.com, etc.) as covered in our external DNS documentation. Both work so please do whichever you prefer.

Let us know which site and we’ll verify that it meets the requirements and get that set up for you.

1 Like