Sorry for crossposting but I have seen a couple similar issues that just point to some docs that doesn’t seem to clear my doubt.
I am creating some netlify sites and the process is fully automated so it has to be entirely handled via APIs.
All works well up to the point to connect a custom domain to the site.
I am using the
updateSite method of the node client and passing the custom domain (let’s say help-me.com) to the
At this point though, help-me.com is not a netlify domain (it is registered in namecheap.com)
What I am doing is that in namecheap.com, I configure that site to use netlify dns (dns1.p08.nsone.net etc). Then, I would like to set that new domain as primary domain and to have it use the netlify DNS.
I don’t understand how to do this step via API. I see that there are some DNS ZONE APIs but that is not about a specific site or domain.
The issue is, I cannot even test out if just connecting it like this works, because I am not actually purchasing those domains, I am using a sandbox in namecheap (since it is just development).
So on netlify, the domain does not connect well (it is not detected as a netlify domain).
Before running in production outside of the sandbox, I would like to clearify if what I am doing is correct and complete.
Another approach would perhaps be to keep using the DNS of the registrar, but point the A record to the netlify IP? anyways I would greatly prefer to use the DNS of netlify if I can get it work programmatically.