happyDomain/internal/adapters
Pierre-Olivier Mercier c945ba30ed Use rtypecontrol.NewRecordConfigFromStruct for modern DNS record types in DNSControlRRtoRC
Fix panic on DS records by importing dnscontrol rtype package

For record types registered in rtypecontrol.Func, bypass dnsrr.RRtoRC and
call rtypecontrol.NewRecordConfigFromStruct directly, passing the record as
the struct argument. This ensures correct handling of modern rtypes (DS, RP,
etc.) without relying on dnsrr's internal dispatch. Legacy types fall back to
the existing dnsrr.RRtoRC path.

Import _ "github.com/StackExchange/dnscontrol/v4/pkg/rtype" to trigger
init() registration of DS and RP as modern types. Without this import,
dnsrr.RRtoRC would panic with "DS should be handled as modern type".
2026-03-30 21:54:29 +07:00
..
dnscontrol-correction.go Use rtypecontrol.NewRecordConfigFromStruct for modern DNS record types in DNSControlRRtoRC 2026-03-30 21:54:29 +07:00
dnscontrol-correction_test.go Rework zone diff/apply flow: separate diff from provider API, support partial apply 2026-03-16 19:46:09 +07:00
dnscontrol-providers.go Use rtypecontrol.NewRecordConfigFromStruct for modern DNS record types in DNSControlRRtoRC 2026-03-30 21:54:29 +07:00
libdns-providers.go Add libdns provider adapter for supporting libdns-based DNS providers 2026-03-30 11:58:02 +07:00
libdns-providers_test.go Add libdns provider adapter for supporting libdns-based DNS providers 2026-03-30 11:58:02 +07:00
libdns-records.go Add libdns provider adapter for supporting libdns-based DNS providers 2026-03-30 11:58:02 +07:00
libdns-records_test.go Add libdns provider adapter for supporting libdns-based DNS providers 2026-03-30 11:58:02 +07:00