Revert "INWX: fix apex domains (#1221)" (#1242)

This reverts commit f63302b978.
This commit is contained in:
Patrik Kernstock 2021-08-30 00:35:25 +01:00 committed by GitHub
parent 0203154021
commit f0026b8073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,16 +161,11 @@ func newInwxDsp(m map[string]string, metadata json.RawMessage) (providers.DNSSer
func makeNameserverRecordRequest(domain string, rec *models.RecordConfig) *goinwx.NameserverRecordRequest {
content := rec.GetTargetField()
name := rec.GetLabel()
if name == "@" {
name = ""
}
req := &goinwx.NameserverRecordRequest{
Domain: domain,
Type: rec.Type,
Content: content,
Name: name,
Name: rec.GetLabel(),
TTL: int(rec.TTL),
}
@ -304,9 +299,6 @@ func (api *inwxAPI) GetZoneRecords(domain string) (models.Records, error) {
var records = []*models.RecordConfig{}
for _, record := range info.Records {
if record.Name == "" {
record.Name = "@"
}
if record.Type == "SOA" {
continue
}