1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

INWX: Fix PTR test failing/unexpected PTR modify operation (#2430)

This commit is contained in:
Patrik Kernstock
2023-06-08 18:34:03 +01:00
committed by GitHub
parent e166160072
commit 3250681821

View File

@@ -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 + "."
}