From 575a14c394519c69e305b1166d523587543398d7 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 1 Sep 2021 09:37:12 +0200 Subject: [PATCH] dyndns: add zone to record name Otherwise, already existing records are not recognized correctly. --- internal/dyndns/dyndns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dyndns/dyndns.go b/internal/dyndns/dyndns.go index 9e52f08..1db5f6c 100644 --- a/internal/dyndns/dyndns.go +++ b/internal/dyndns/dyndns.go @@ -36,7 +36,7 @@ func Update(ctx context.Context, zone string, record libdns.Record, provider Rec var updated []libdns.Record for _, rec := range existing { - if rec.Name != record.Name || rec.Type != record.Type { + if rec.Name+"."+zone != record.Name || rec.Type != record.Type { continue }