Is there a way to be notified when the nameservers associated with my account change? I built an automation to register and activate a domain based on the nameservers I received when I signed up. Then sometime in the past month, Cloudflare put me on different nameservers for newer sites, and I didn’t know until someone reported the newer domains were not resolving.
The nameserver pair are set when you provision a zone. If you are doing it via API it is returned in the response.
There’s no guarantee that any given zone will have a nameserver pair that matches a pair previously assigned, even if the same pair has been returned 100 times in a row. So your automation should check the assigned nameserver pair in your zone and provision at your registrar based on that.