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:
@@ -308,7 +308,14 @@ func (api *inwxAPI) GetZoneRecords(domain string, meta map[string]string) (model
|
|||||||
Records with empty targets (i.e. records with target ".")
|
Records with empty targets (i.e. records with target ".")
|
||||||
are not allowed.
|
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 + "."
|
record.Content = record.Content + "."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user