1
0
mirror of https://github.com/google/nomulus synced 2026-01-09 23:47:49 +00:00

Create prod Cloud DNS domains in prod zonespace

When running create_cdns_tld in "production" mode, specify the Cloud DNS
production namespace instead of the staging namespace.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=191451390
This commit is contained in:
mmuller
2018-04-03 09:26:08 -07:00
committed by Ben McIlwain
parent 839e4aa682
commit 3684fa3366

View File

@@ -66,8 +66,10 @@ class CreateCdnsTld extends ConfirmingCommand {
managedZone =
new ManagedZone()
.setDescription(description)
// TODO(b/67413698): allow parameterizing the nameserver set once it's safe to do so.
.setNameServerSet("cloud-dns-registry-test")
.setNameServerSet(
RegistryToolEnvironment.get() == RegistryToolEnvironment.PRODUCTION
? "cloud-dns-registry"
: "cloud-dns-registry-test")
.setDnsName(dnsName)
.setName((name != null) ? name : dnsName)
.setDnssecConfig(new ManagedZoneDnsSecConfig().setNonExistence("NSEC").setState("ON"));