Skip to content

🧩 Feature Request: Query All Specified Resolvers and Return All Results (Not Just the First One) #884

@JaveleyQAQ

Description

@JaveleyQAQ

Description

Currently, when multiple resolvers are specified using the -r flag (e.g., -r 1.1.1.1,8.8.8.8), dnsx only returns the result from the first resolver that successfully responds. It does not query all resolvers and return all results.

This behavior limits the ability to gather a complete view of DNS responses across different resolvers — for example, discovering CDN edge IPs in different regions or analyzing DNS load balancing.

Expected Behavior

Add an option (e.g., --all-resolvers) that:

  • Queries every resolver listed in the -r flag.
  • Returns all unique DNS records (A, AAAA, CNAME, etc.) returned by any resolver.
  • Optionally deduplicates results for cleaner output.

Example desired output:

{
  "host": "example.com",
  "a": [
    "1.1.1.1",  // ip from 1.1.1.1
    "8.8.8.8".  // ip from 8.8.8.8
  ],
  "resolver": [
    "1.1.1.1:53",
    "8.8.8.8:53"
  ]
}

Use Cases

  • CDN analysis: Discover all IP ranges used by global CDN providers.
  • Asset discovery: Get full coverage of possible IPs behind a domain.
  • Reconnaissance: Understand how DNS resolution varies across different resolvers.

Suggested Enhancement

Add CLI flags:

--all-resolvers   Perform queries against all resolvers and return all results
--unique-only     Deduplicate results when using --all-resolvers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: EnhancementMost issues will probably ask for additions or changes.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions