Skip to content

-diff reports names this run never tested as "removed" (different wordlist, recursion, permute, wildcard-filtered, timeouts) #110

Closed

Description

@TMHSDigital

Why it matters

-diff drives scheduled monitoring (docs/monitoring.md) and exits 4 on change. False "removed" lines create alert noise and erode trust in the alert, which is the whole value of monitoring mode.

Evidence

  • removedNames (main_diff.go:111-129) filters previous names only by target suffix and -exclude.
  • Repro: with a 2-word list, -diff prev.txt printed - never-tested-host.example.com and - deep.www.example.com, exit 4.
  • The same happens when:
    • the previous run used a bigger wordlist, -recursive or -permute;
    • a name is now wildcard-filtered;
    • a name timed out this run. The verdict stays complete under the 1% failure threshold, so the README's "failed lookups are never mistaken for removals" (README.md:432) does not hold per name.

Suggested approach

Report a name as removed only if it was a candidate this run and got NXDOMAIN. Better, re-resolve every candidate removal against the trusted resolver and report only confirmed NXDOMAIN. Names not tested go in an "unverified" bucket (omitted by default, counted in the summary).

Done when

Tests cover a different wordlist, a timeout on one previous name, and a recursive previous run, with no false removals and an accurate exit code.

Activity

  1. added
    bug
    priority: medium
    area: output
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: outputbugpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions