mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 07:03:01 +08:00
HETZNER: fix nameserver trailing dots (#2301)
Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
a0d491e6ce
commit
d8e167c2ce
1 changed files with 2 additions and 5 deletions
|
@ -149,11 +149,8 @@ func (api *hetznerProvider) GetNameservers(domain string) ([]*models.Nameserver,
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
nameserver := make([]*models.Nameserver, len(z.NameServers))
|
||||
for i, s := range z.NameServers {
|
||||
nameserver[i] = &models.Nameserver{Name: s}
|
||||
}
|
||||
return nameserver, nil
|
||||
|
||||
return models.ToNameserversStripTD(z.NameServers)
|
||||
}
|
||||
|
||||
// GetZoneRecords gets the records of a zone and returns them in RecordConfig format.
|
||||
|
|
Loading…
Reference in a new issue