oraclecloud: use fqdn to resolve zone (#1731)
This commit is contained in:
parent
615e601d78
commit
87ee39a1dc
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
|
|||
func (d *DNSProvider) Present(domain, token, keyAuth string) error {
|
||||
fqdn, value := dns01.GetRecord(domain, keyAuth)
|
||||
|
||||
zoneNameOrID, err1 := dns01.FindZoneByFqdn(dns01.ToFqdn(domain))
|
||||
zoneNameOrID, err1 := dns01.FindZoneByFqdn(fqdn)
|
||||
if err1 != nil {
|
||||
return fmt.Errorf("oraclecloud: could not find zone for domain %q and fqdn %q : %w", domain, fqdn, err1)
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ func (d *DNSProvider) Present(domain, token, keyAuth string) error {
|
|||
func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
|
||||
fqdn, value := dns01.GetRecord(domain, keyAuth)
|
||||
|
||||
zoneNameOrID, err1 := dns01.FindZoneByFqdn(dns01.ToFqdn(domain))
|
||||
zoneNameOrID, err1 := dns01.FindZoneByFqdn(fqdn)
|
||||
if err1 != nil {
|
||||
return fmt.Errorf("oraclecloud: could not find zone for domain %q and fqdn %q : %w", domain, fqdn, err1)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue