Skip to content

Commit

Permalink
Add ALIAS support for INWX provider StackExchange#2742
Browse files Browse the repository at this point in the history
  • Loading branch information
egon0 committed Jan 14, 2024
1 parent 56220fb commit ebb7dea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions providers/inwx/inwxProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var InwxSandboxDefaultNs = []string{"ns.ote.inwx.de", "ns2.ote.inwx.de"}
var features = providers.DocumentationNotes{
providers.CanAutoDNSSEC: providers.Unimplemented("Supported by INWX but not implemented yet."),
providers.CanGetZones: providers.Can(),
providers.CanUseAlias: providers.Cannot("INWX does not support the ALIAS or ANAME record type."),
providers.CanUseAlias: providers.Can(),
providers.CanUseCAA: providers.Can(),
providers.CanUseDS: providers.Unimplemented("DS records are only supported at the apex and require a different API call that hasn't been implemented yet."),
providers.CanUseLOC: providers.Unimplemented(),
Expand Down Expand Up @@ -176,7 +176,7 @@ func makeNameserverRecordRequest(domain string, rec *models.RecordConfig) *goinw
Records with empty targets (i.e. records with target ".")
are not allowed.
*/
case "CNAME", "NS":
case "CNAME", "NS", "ALIAS":
req.Content = content[:len(content)-1]
case "MX":
req.Priority = int(rec.MxPreference)
Expand Down Expand Up @@ -307,6 +307,7 @@ func (api *inwxAPI) GetZoneRecords(domain string, meta map[string]string) (model
"NS": true,
"SRV": true,
"PTR": true,
"ALIAS": true,
}
if rtypeAddDot[record.Type] {
if record.Type == "MX" && record.Content == "." {
Expand Down

0 comments on commit ebb7dea

Please sign in to comment.