From b3787ab8f758dd77be39568ed70485f885f33969 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Wed, 29 May 2024 20:37:18 +0000 Subject: [PATCH] AXFRDDNS: Canonicalize key name as per RFC 2845 3.4.2 (#2966) --- providers/axfrddns/axfrddnsProvider.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/providers/axfrddns/axfrddnsProvider.go b/providers/axfrddns/axfrddnsProvider.go index 41a90915a..5408e24fd 100644 --- a/providers/axfrddns/axfrddnsProvider.go +++ b/providers/axfrddns/axfrddnsProvider.go @@ -216,10 +216,7 @@ func readKey(raw string, kind string) (*Key, error) { if err != nil { return nil, fmt.Errorf("cannot decode Base64 secret (%s) in AXFRDDNS.TSIG", kind) } - id := arr[1] - if !strings.HasSuffix(id, ".") { - id += "." - } + id := dns.CanonicalName(arr[1]) return &Key{algo: algo, id: id, secret: arr[2]}, nil }