mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 09:12:47 +08:00
GCLOUD: create-zones breaks if domain starts with digit
This commit is contained in:
parent
bf9007fde4
commit
2579336cdb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue