GCLOUD: create-zones breaks if domain starts with digit

This commit is contained in:
Tom Limoncelli 2018-03-09 07:01:13 -05:00
parent bf9007fde4
commit 2579336cdb

View file

@ -233,7 +233,7 @@ func (g *gcloud) EnsureDomainExists(domain string) error {
fmt.Printf("Adding zone for %s to gcloud account\n", domain)
mz := &gdns.ManagedZone{
DnsName: domain + ".",
Name: strings.Replace(domain, ".", "-", -1),
Name: "zone-" + strings.Replace(domain, ".", "-", -1),
Description: "zone added by dnscontrol",
}
g.zones = nil // reset cache