mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
This reverts commit f63302b978
.
This commit is contained in:
@ -161,16 +161,11 @@ func newInwxDsp(m map[string]string, metadata json.RawMessage) (providers.DNSSer
|
|||||||
func makeNameserverRecordRequest(domain string, rec *models.RecordConfig) *goinwx.NameserverRecordRequest {
|
func makeNameserverRecordRequest(domain string, rec *models.RecordConfig) *goinwx.NameserverRecordRequest {
|
||||||
content := rec.GetTargetField()
|
content := rec.GetTargetField()
|
||||||
|
|
||||||
name := rec.GetLabel()
|
|
||||||
if name == "@" {
|
|
||||||
name = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
req := &goinwx.NameserverRecordRequest{
|
req := &goinwx.NameserverRecordRequest{
|
||||||
Domain: domain,
|
Domain: domain,
|
||||||
Type: rec.Type,
|
Type: rec.Type,
|
||||||
Content: content,
|
Content: content,
|
||||||
Name: name,
|
Name: rec.GetLabel(),
|
||||||
TTL: int(rec.TTL),
|
TTL: int(rec.TTL),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -304,9 +299,6 @@ func (api *inwxAPI) GetZoneRecords(domain string) (models.Records, error) {
|
|||||||
var records = []*models.RecordConfig{}
|
var records = []*models.RecordConfig{}
|
||||||
|
|
||||||
for _, record := range info.Records {
|
for _, record := range info.Records {
|
||||||
if record.Name == "" {
|
|
||||||
record.Name = "@"
|
|
||||||
}
|
|
||||||
if record.Type == "SOA" {
|
if record.Type == "SOA" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user