diff --git a/dnsprovider/dnsprovider.go b/dnsprovider/dnsprovider.go index bcc6fd1..1fe60b0 100644 --- a/dnsprovider/dnsprovider.go +++ b/dnsprovider/dnsprovider.go @@ -9,6 +9,7 @@ import ( "io" "net/http" "net/http/cookiejar" + "strconv" log "github.com/sirupsen/logrus" "sigs.k8s.io/external-dns/endpoint" @@ -296,6 +297,9 @@ func (p *DNSProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error) var endpoints []*endpoint.Endpoint for _, record := range records { + if record.RecordType == "TXT" { + record.Value, _ = strconv.Unquote(record.Value) + } endpoints = append(endpoints, &endpoint.Endpoint{ DNSName: record.Key, Targets: []string{record.Value},