For the purpose of what I’m looking for, imagine my users each have a username and I’d like them to be able to go to username.nftr.name and have my ReactJS app redirect to a specific resource, for example nftr.name/username taking in the subdomain as a wildcard. How is this achievable?
If I had a way of telling netlify DNS to send all *.nftr.name traffic to nftr.name but leave the subdomain wildcard in, I could then just parse the subdomain part and redirect to the resource myself.
Wildcard subdomains can be activated, but there are a few requirements:
The site must be on a Pro or above team.
The DNS must be managed by Netlify OR you need to bring a custom wildcard SSL certificate.
The site should not have any domain aliases or branch subdomains.
The primary domain of the website should be on the same level as the required wildcard domain. For example:
If you need the wildcard to be *.bar.domain.com where * can be your wildcard subdomain, the primary domain must be www.bar.domain.com (www can be replaced with any string).
You need to configure the DNS for the wildcard subdomain even in case you are using Netlify DNS. You can follow the external DNS configuration for subdomains and add a CNAME entry with * as the hostname or any other value that you want. The value of this DNS entry should be the Netlify site address.
If that sounds like something that would work, please let us know and we’d enable it for your site.