mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 15:12:57 +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 {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
nameserver := make([]*models.Nameserver, len(z.NameServers))
|
|
||||||
for i, s := range z.NameServers {
|
return models.ToNameserversStripTD(z.NameServers)
|
||||||
nameserver[i] = &models.Nameserver{Name: s}
|
|
||||||
}
|
|
||||||
return nameserver, nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetZoneRecords gets the records of a zone and returns them in RecordConfig format.
|
// GetZoneRecords gets the records of a zone and returns them in RecordConfig format.
|
||||||
|
|
Loading…
Reference in a new issue