Skip to content

-r takes only a file; accept an inline comma-separated resolver list #491

Backlog

Description

@TMHSDigital

Summary

-r takes only a file path ("File of resolvers ... one per line", internal/cli/cli.go:285; read with in.readLines(f.resolvers) at :517). Spreading queries over two public resolvers means creating a file first.

Problem

Extra friction in one-liners, Docker runs (a mounted file is needed) and the Action's args. So quick runs and containers stay on the single default resolver and miss the pool's liar detection. subenum -r 1.1.1.1,9.9.9.9 example.com fails because no file has that name.

Proposal

When the value contains a comma, or parses as a single resolver address, and no file of that name exists, split on commas and validate each entry the way file lines are validated. File semantics stay first, so existing names keep working. Update the help text, docs/_includes/flags.md (via make docs-flags) and the completion hints.

Acceptance criteria

  • -r 1.1.1.1,tls://9.9.9.9 builds a two-member pool.
  • An existing file named like an address is still read as a file.

Getting started

  • Relevant files: internal/cli/cli.go, internal/dns/pool.go (NewPoolFromLines)
  • How to run tests: go test ./internal/cli

Filed by repo-audit/full-audit at a45b999. Severity: low. Effort: S. audit-key: enhancement|internal/cli/cli.go|resolvers

Activity

  1. added
    enhancement
    good first issue
    area: cli
    severity: low
    on Nov 29, 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: clienhancementgood first issueseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions