mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-25 08:02:58 +08:00
INWX: Fix PTR test failing/unexpected PTR modify operation (#2430)
This commit is contained in:
parent
e166160072
commit
3250681821
1 changed files with 8 additions and 1 deletions
|
@ -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 + "."
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue