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

INWX: enable multi txt support (#981)

* INWX: enable MultiTXT support

* run go generate to update docs
This commit is contained in:
Sven Peter
2020-11-29 19:54:34 +01:00
committed by GitHub
parent 07917006bb
commit f81260ba71
4 changed files with 14 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ var features = providers.DocumentationNotes{
providers.CanUseSRV: providers.Can("SRV records with empty targets are not supported."),
providers.CanUseSSHFP: providers.Can(),
providers.CanUseTLSA: providers.Can(),
providers.CanUseTXTMulti: providers.Cannot("INWX only supports a single entry for TXT records"),
providers.CanUseTXTMulti: providers.Can(),
providers.CanAutoDNSSEC: providers.Unimplemented("Supported by INWX but not implemented yet."),
providers.DocOfficiallySupported: providers.Cannot(),
providers.DocDualHost: providers.Can(),
@@ -211,8 +211,10 @@ func (api *inwxAPI) deleteRecord(RecordID int) error {
func checkRecords(records models.Records) error {
for _, r := range records {
if r.Type == "TXT" {
if strings.ContainsAny(r.Target, "`") {
return fmt.Errorf("INWX TXT records do not support single-quotes in their target")
for _, target := range r.TxtStrings {
if strings.ContainsAny(target, "`") {
return fmt.Errorf("INWX TXT records do not support single-quotes in their target")
}
}
}
}