From 4bbc6bd5894685872b1284ab0d393bbf4d54ad56 Mon Sep 17 00:00:00 2001 From: Kiswono Prayogo Date: Fri, 26 Jul 2024 14:57:37 +0700 Subject: [PATCH] skip creation of wildcard in the middle --- gcoreprovider/gcore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcoreprovider/gcore.go b/gcoreprovider/gcore.go index be893f4..8776cfd 100644 --- a/gcoreprovider/gcore.go +++ b/gcoreprovider/gcore.go @@ -174,7 +174,7 @@ func (p *DnsProvider) ApplyChanges(rootCtx context.Context, changes *plan.Change for _, c := range changes.Create { c := c zone := extractZone(c.DNSName) - if zone == "" { + if zone == "" || (c.RecordType == "TXT" && strings.Index(c.DNSName, `*`) > 0) { continue } recordValues := make([]gdns.ResourceRecord, 0)