mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
GCLOUD: create-zones breaks if domain starts with digit
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user