mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 18:08:57 +08:00
Hosting.de: Allow using as registrar only (#1307)
Previously, the provider would always try to fetch the zone config for the domain. But that doesn't work if the domain's DNS is not managed through Hosting.de. With this patch, getDomainConfig() instead filters directly on the domain name instead of re-fetching it from the zone. Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
58a5a4bcf0
commit
2cfd2f403b
1 changed files with 1 additions and 6 deletions
|
@ -20,15 +20,10 @@ type hostingdeProvider struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (hp *hostingdeProvider) getDomainConfig(domain string) (*domainConfig, error) {
|
func (hp *hostingdeProvider) getDomainConfig(domain string) (*domainConfig, error) {
|
||||||
zc, err := hp.getZoneConfig(domain)
|
|
||||||
if err != nil {
|
|
||||||
return nil, fmt.Errorf("error getting zone config: %w", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
params := request{
|
params := request{
|
||||||
Filter: filter{
|
Filter: filter{
|
||||||
Field: "domainName",
|
Field: "domainName",
|
||||||
Value: zc.Name,
|
Value: domain,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue