1. The problem I’m having:
Since the latest update on opnsense caddy has some issues parsing cloudflare SRV records as it’s now using caddy 2.10.0 (1.8 before)
libdns/cloudflare/models.go checks for less that 3 parts of a SRV name, but there are only 2 !
2. Error messages and/or full log output:
2025/05/21 16:40:29 Fehler beim Abrufen der Records: parsing Cloudflare DNS
record {ID:97cea87cf521922c1af36f4973d0d7ed Type:SRV
Name:_autodiscover._tcp.example.de Content:100 443 autoconfigure.strato.de
Priority:0 Proxiable:false Proxied:false TTL:1 Locked:false ZoneID: ZoneName:
CreatedOn:2022-11-18 22:03:07.755169 +0000 UTC ModifiedOn:2025-05-21
14:40:12.502698 +0000 UTC Data:{LatDegrees:0 LatMinutes:0 LatSeconds:0
LatDirection: LongDegrees:0 LongMinutes:0 LongSeconds:0 LongDirection:
Altitude:0 Size:0 PrecisionHorz:0 PrecisionVert:0 Service: Proto: Name:
Priority:0 Weight:100 Port:443 Target:autoconfigure.strato.de Value: Tag:
Flags:0 Protocol:0 Algorithm:0 KeyTag:0 DigestType:0 Usage:0 Selector:0
MatchingType:0 Content:} Meta:0x87043e200}: name _autodiscover._tcp does not
contain enough fields; expected format: '_service._proto.name'
3. Caddy version:
2.10.0
4. How I installed and ran Caddy:
opnSense plugin
a. System environment:
opnSense 25.1.7_2
b. Command:
None
c. Service/unit/compose file:
None
d. My complete Caddy config:
same error with
provider := cloudflare.Provider{APIToken: token}
recs, err := provider.GetRecords(ctx, zone)
if err != nil {
log.Fatalf("Fehler beim Abrufen der Records: %v", err)
}