From 00a2d5dbf854526e98e34c595ba1bb78db9ed1be Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Tue, 1 Sep 2020 10:35:43 +0200 Subject: [PATCH] namesilo: fix cleanup. (#1240) --- providers/dns/namesilo/namesilo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/dns/namesilo/namesilo.go b/providers/dns/namesilo/namesilo.go index 163eb517..246432d7 100644 --- a/providers/dns/namesilo/namesilo.go +++ b/providers/dns/namesilo/namesilo.go @@ -124,7 +124,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error { var lastErr error name := getRecordName(fqdn, zoneName) for _, r := range resp.Reply.ResourceRecord { - if r.Type == "TXT" && r.Host == name { + if r.Type == "TXT" && (r.Host == name || r.Host == dns01.UnFqdn(fqdn)) { _, err := d.client.DnsDeleteRecord(&namesilo.DnsDeleteRecordParams{Domain: zoneName, ID: r.RecordID}) if err != nil { lastErr = fmt.Errorf("namesilo: %w", err)