mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 17:26:10 +08:00
Fix NS1_URLFWD custom record type handling (#2289)
This commit is contained in:
parent
5e9472bd44
commit
bede608637
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ func init() {
|
||||||
RecordAuditor: AuditRecords,
|
RecordAuditor: AuditRecords,
|
||||||
}
|
}
|
||||||
providers.RegisterDomainServiceProviderType("NS1", fns, providers.CanUseSRV, docNotes)
|
providers.RegisterDomainServiceProviderType("NS1", fns, providers.CanUseSRV, docNotes)
|
||||||
providers.RegisterCustomRecordType("NS1_URLFWD", "NS1", "URLFWD")
|
providers.RegisterCustomRecordType("NS1_URLFWD", "NS1", "")
|
||||||
}
|
}
|
||||||
|
|
||||||
type nsone struct {
|
type nsone struct {
|
||||||
|
@ -341,7 +341,7 @@ func convert(zr *dns.ZoneRecord, domain string) ([]*models.RecordConfig, error)
|
||||||
return nil, fmt.Errorf("unparsable %s record received from ns1: %w", rtype, err)
|
return nil, fmt.Errorf("unparsable %s record received from ns1: %w", rtype, err)
|
||||||
}
|
}
|
||||||
case "URLFWD":
|
case "URLFWD":
|
||||||
rec.Type = rtype
|
rec.Type = "NS1_URLFWD"
|
||||||
if err := rec.SetTarget(ans); err != nil {
|
if err := rec.SetTarget(ans); err != nil {
|
||||||
return nil, fmt.Errorf("unparsable %s record received from ns1: %w", rtype, err)
|
return nil, fmt.Errorf("unparsable %s record received from ns1: %w", rtype, err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue