Derive probed record types from the working zone
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Stop blindly probing a fixed list (which always included CAA): read the
auto-filled zone and only probe the RR types each owner actually has,
keeping SOA/NS at the apex. The recordTypes option still works as an
explicit override; missing zone falls back to the legacy default.
This commit is contained in:
nemunaire 2026-05-25 18:22:09 +08:00
commit 7d23348098
5 changed files with 367 additions and 15 deletions

View file

@ -32,8 +32,7 @@ func (p *resolverPropagationProvider) Definition() *sdk.CheckerDefinition {
Id: "recordTypes",
Type: "string",
Label: "Record types to probe",
Description: "Comma-separated list of RR types. The checker probes every listed type at the zone apex (and at each 'subdomains' entry).",
Default: "SOA,NS,A,AAAA,MX,TXT,CAA",
Description: "Comma-separated list of RR types to probe at every owner (apex + each 'subdomains' entry). Leave empty to derive the list from the working zone (SOA/NS at the apex plus whatever RR types are actually defined on each owner).",
},
{
Id: "subdomains",
@ -92,6 +91,12 @@ func (p *resolverPropagationProvider) Definition() *sdk.CheckerDefinition {
Label: "Zone name",
AutoFill: sdk.AutoFillDomainName,
},
{
Id: "zone",
Label: "Zone",
AutoFill: sdk.AutoFillZone,
Hide: true,
},
},
ServiceOpts: []sdk.CheckerOptionDocumentation{
{