1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix #491 for BIND, HEXONET, LINODE, NAMECHEAP, NS1, OPENSRS, SOFTLAYER, VULTR (#710)

* BIND: issues/491

* HEXONET: Fixe #491

* LINODE: Fix #491

* NAMECHEAP: Fix #491

* NS1: Fix #491

* OPENSRS: Fix #491

* SOFTLAYER: Fix #491

* VULTR: Fix #491
This commit is contained in:
Tom Limoncelli
2020-03-26 09:59:59 -04:00
committed by GitHub
parent 34c73d4025
commit 45f36ffd12
8 changed files with 13 additions and 11 deletions

View File

@ -102,7 +102,12 @@ type Bind struct {
// GetNameservers returns the nameservers for a domain.
func (c *Bind) GetNameservers(string) ([]*models.Nameserver, error) {
return c.nameservers, nil
var r []string
for _, j := range c.nameservers {
r = append(r, j.Name)
fmt.Printf("DEBUG: %q\n", j.Name)
}
return models.ToNameservers(r)
}
// ListZones returns all the zones in an account