Hey! I know you can dynamically create a website with Netlify API, but is it possible to make it’s main domain a dynamically generated subdomain? For example. We own shopmythred.com (DNS on Google Domains), when a user joins our platform I want to give them their own website at {{username}}.shopmythred.com. All websites will be connected to the main Github Repo/Branch Deploy too.
I tried this, but the subdomain wasn’t being picked up by Netlify.
Hi @Artathecanadian ,
Yes, it’s possible.
Could you please explain what exactly do you mean?
Netlify was saying the subdomain’s dns wasn’t properly configured, i’m suspecting it’s because it’s a Google Domain and not Netlify
Can you please walk me through the process?
Hey there, @Artathecanadian
It looks like this thread is related to what you are asking and outlines how to dynamically generate subdomains:
I would like to be able to create subdomains that point to different repos in github. I know I can do branch deploys, but that is not what I need.
The scenario would be i make an API call and authorize netlify to use my github account and give it permissions to a repo. Then later I authorize it to use a different repo, but that has to be a subdomain of the same root domain.
I have been able to do this manually, but I’d like to use the API. I’m sure there’s a way, but I can’t seem to find it
Additionally, if you have further DNS questions I recommend starting with the following Support Guide:
Hi there!
We know that using your own production domain (Example: http://somecooldomain.com ) on a Netlify site can be a bit confusing at times. The good news is that our team has written an abundance of guides covering various questions regarding domains. This listing has all of our “best practice” guides about configuring and using Netlify DNS and production domains on our service, grouped by topic area. We have a few guides that cover multiple topic areas, so we have listed them under …
Let us know if this clears things up for you!