-
Notifications
You must be signed in to change notification settings - Fork 271
Open
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.
Description
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
-rflag. - 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-resolversMetadata
Metadata
Assignees
Labels
Type: EnhancementMost issues will probably ask for additions or changes.Most issues will probably ask for additions or changes.