mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
BUG: BIND not handling long TXT records correctly (#2447)
This commit is contained in:
@@ -27,6 +27,7 @@ import (
|
|||||||
"github.com/StackExchange/dnscontrol/v4/pkg/diff2"
|
"github.com/StackExchange/dnscontrol/v4/pkg/diff2"
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/prettyzone"
|
"github.com/StackExchange/dnscontrol/v4/pkg/prettyzone"
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/printer"
|
"github.com/StackExchange/dnscontrol/v4/pkg/printer"
|
||||||
|
"github.com/StackExchange/dnscontrol/v4/pkg/txtutil"
|
||||||
"github.com/StackExchange/dnscontrol/v4/providers"
|
"github.com/StackExchange/dnscontrol/v4/providers"
|
||||||
"github.com/miekg/dns"
|
"github.com/miekg/dns"
|
||||||
)
|
)
|
||||||
@@ -210,6 +211,7 @@ func ParseZoneContents(content string, zoneName string, zonefileName string) (mo
|
|||||||
|
|
||||||
// GetZoneRecordsCorrections returns a list of corrections that will turn existing records into dc.Records.
|
// GetZoneRecordsCorrections returns a list of corrections that will turn existing records into dc.Records.
|
||||||
func (c *bindProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, foundRecords models.Records) ([]*models.Correction, error) {
|
func (c *bindProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, foundRecords models.Records) ([]*models.Correction, error) {
|
||||||
|
txtutil.SplitSingleLongTxt(dc.Records)
|
||||||
|
|
||||||
changes := false
|
changes := false
|
||||||
var msg string
|
var msg string
|
||||||
|
Reference in New Issue
Block a user