Is it possible to manually set my NS records to always use ns-cloud-aX.googledomains.com?

715 views
Skip to first unread message

vin...@whales.media

unread,
Apr 24, 2017, 2:17:48 PM4/24/17
to cloud-dns-discuss

I am interested to create a managed zone with NS records that are fixed to ns-cloud-aX.googledomains.com. I have to manage 100 domains per day on a registrar without an API and this will make my job a lot easier.

I tried changing the NS values in Google Cloud but I keep seeing this error:

Warning: Your NS records do not match the nameservers for your zone. This is not common and could cause problems.

Is it possible to manually set my NS records to always use ns-cloud-aX.googledomains.com?

Alex Dupuy

unread,
May 8, 2017, 4:36:50 PM5/8/17
to cloud-dns-discuss, vin...@whales.media
Short answer: no.

Longer answer: 

You can what you want in a rather painful way by creating multiple copies of a zone (with different internal names, but the same DNS name) until you get one with the right set of name servers (deleting all the other zones once you get the zone with the right name servers). You can automate the creation using the Google Cloud DNS API, but if it requires so many tries to get the right one that you would be using all the possible name server sets, you will have to prove that you actually control the domain (usually by putting a TXT record with special name and value into the zone), and it would be a lot of work to automate that.

You could delete the last zone when that happens, and try again (with a 50% chance of getting the other one) so it might still be possible to get the name server set in a fully automated way. Except, of course, if another Google Cloud DNS user already has a zone with the same DNS name on the name server set that you want to use. In that case you are SOL, since selecting particular name server sets is not a supported feature. As long as your DNS names are not example.com or something like that, neither the ownership proof requirement nor the possibility that another user has the zone+NS set combination you want are likely to be issues.

But this is not a supported use case, so there are no guarantees.

Reply all
Reply to author
Forward
0 new messages