From 87ee39a1dcda89f87e46a2f5f9a5c61fed2744f7 Mon Sep 17 00:00:00 2001 From: Omar Aloraini Date: Mon, 10 Oct 2022 08:05:11 +0300 Subject: [PATCH] oraclecloud: use fqdn to resolve zone (#1731) --- providers/dns/oraclecloud/oraclecloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/dns/oraclecloud/oraclecloud.go b/providers/dns/oraclecloud/oraclecloud.go index 19c74e20..4ab5e6b8 100644 --- a/providers/dns/oraclecloud/oraclecloud.go +++ b/providers/dns/oraclecloud/oraclecloud.go @@ -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) }