mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
DESEC: implement ListZones (#2381)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
@@ -248,3 +248,12 @@ func (c *desecProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
|
|||||||
|
|
||||||
return corrections, nil
|
return corrections, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ListZones return all the zones in the account
|
||||||
|
func (c *desecProvider) ListZones() ([]string, error) {
|
||||||
|
var domains []string
|
||||||
|
for domain := range c.domainIndex {
|
||||||
|
domains = append(domains, domain)
|
||||||
|
}
|
||||||
|
return domains, nil
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user