From 32506818211356b719a55e87db6933aae45d6422 Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Thu, 8 Jun 2023 18:34:03 +0100 Subject: [PATCH] INWX: Fix PTR test failing/unexpected PTR modify operation (#2430) --- providers/inwx/inwxProvider.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/providers/inwx/inwxProvider.go b/providers/inwx/inwxProvider.go index 1e5e546ca..0180e3128 100644 --- a/providers/inwx/inwxProvider.go +++ b/providers/inwx/inwxProvider.go @@ -308,7 +308,14 @@ func (api *inwxAPI) GetZoneRecords(domain string, meta map[string]string) (model Records with empty targets (i.e. records with target ".") are not allowed. */ - if record.Type == "CNAME" || record.Type == "MX" || record.Type == "NS" || record.Type == "SRV" { + var rtypeAddDot = map[string]bool{ + "CNAME": true, + "MX": true, + "NS": true, + "SRV": true, + "PTR": true, + } + if rtypeAddDot[record.Type] { record.Content = record.Content + "." }