mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* 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:
@ -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
|
||||
|
Reference in New Issue
Block a user