TRANSIP: Implementation get-zones all
@@ -3,6 +3,7 @@ package transip
import (
"encoding/json"
"fmt"
+ "sort"
"strings"
"github.com/StackExchange/dnscontrol/v3/models"
@@ -79,6 +80,19 @@ func init() {
providers.RegisterDomainServiceProviderType("TRANSIP", fns, features)
}
+func (n *transipProvider) ListZones() ([]string, error) {
+ var domains []string
+
+ domainsMap, _ := n.domains.GetAll()
+ for _, domainname := range domainsMap {
+ domains = append(domains, domainname.Name)
+ }
+
+ sort.Strings(domains)
+
+ return domains, nil
+}
+
func (n *transipProvider) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Correction, error) {
curRecords, err := n.GetZoneRecords(dc.Name)
