Repository navigation
Description
Summary
Names whose lookup ends in a timeout, REFUSED or SERVFAIL are counted and then dropped. A run with a degraded verdict tells you how many names are unknown but not which, so the only way to close the gap is to re-run the whole wordlist. Recording the inconclusive names, and optionally re-testing them once at the end of the run, would make degraded runs recoverable.
Where
internal/scan/runner.go:734-738(processJob):st.add(outcome)thenif outcome != dns.OutcomeFound { return true }; the name is not kept anywhereinternal/scan/runner.go:173-188(counters.add): timeout / refused / other only increment countersinternal/scan/verdict.go:38(verdict): the run is marked degraded or unreliable from those counts
Details
The only trace of an inconclusive name is a -v log line. -stats reports the totals, and -diff already has to reason about "never verified" names (#151), but neither can list them. On a 5,000-name scan with a 3% timeout rate, about 150 names have an unknown answer and the user can't tell which ones.
Proposal
- Keep the inconclusive names per target (timeout, refused, other; never canceled, see Ctrl+C counts in-flight lookups as resolver failures and can raise a false "rate-limiting" abort with exit 1 #42).
- Add
-retry-inconclusive(or reuse-attemptssemantics): after the main pass, re-test those names once, at a lower rate if-rateis set. Names that resolve on the second pass are emitted as normal results; the verdict counts are updated. - Add
-inconclusive <file>: write the names that are still unknown, one per line, so they can be fed back with-w <file>or a later run. - Report both counts in
-stats(for exampleinconclusive_retried,inconclusive_remaining) as new fields, without renaming any existing field (ROADMAP: schemas only gain fields).
Who benefits
Anyone scanning through public resolvers or with -rate, where some timeouts are normal. Monitoring users get fewer false "removed" names in -diff.
Trade-offs / open questions
- Memory: the list is bounded by the failure rate; the reliability guard already aborts above 20%.
- Should the retry go to the trusted
-dns-serverrather than the-rpool? - Interaction with
-resumeand-max-duration(a budget stop should skip the retry pass).
Acceptance criteria
- Inconclusive names are kept per target and never include canceled lookups
- Optional end-of-run retry pass, covered by a test using
internal/dnstestwith injected timeouts -
-inconclusive <file>writes the remaining names -
-statsgains the new counts; existing fields unchanged - Flag documented via
make docs-flags, README and CHANGELOG
Getting started
- Relevant files:
internal/scan/runner.go,internal/scan/verdict.go,internal/report/report.go,main.go(flags) - Tests:
go test ./...(hermetic: use-simulateorinternal/dnstest, never live DNS) - Docs:
docs/ARCHITECTURE.md,docs/cli.md
Filed by repo-audit/feature-ideas at 3fd0128. Severity: high. Effort: M. audit-key: enhancement|internal/scan/runner.go|processJob-inconclusive
Activity
TMHSDigital commentedon Nov 11, 2026
Fixed in b9d5528.
-retry-inconclusive/Config.RetryInconclusivelooks each one up once more against the trusted resolver after the main pass. The pass is skipped after a reliability abort, an interrupt or once-max-durationruns out.-inconclusive <file>writes the names still without an answer.-statsgainsretriedandrecovered.pkg/subenumgainsStats.Retried,Stats.RecoveredandStats.Inconclusive.-ratelimiter as the main pass.Verified with new engine tests (
TestRunRetryInconclusive,TestRunRetryInconclusiveSkippedAfterAbort) and a CLI test against the local test DNS server (TestE2EInconclusive), plus the fullgo test ./...,-raceon the touched packages, andgolangci-lint run(0 issues).docs(architecture): describe the engine as it is on main (#228)