Skip to main content
ASM Cheatsheet

dnsx

Beginner
Actively maintained

Fast DNS resolution, record lookup, and wildcard-aware brute forcing

https://github.com/projectdiscovery/dnsx

Installation

go install -v github.com/projectdiscovery/dnsx/cmd/dnsx@latest

Usage

Basic Usage

# Keep only names that actually resolve
cat candidates.txt | dnsx -silent

# Resolve and show the A records
cat candidates.txt | dnsx -silent -a -resp

# Look up specific record types
cat domains.txt | dnsx -silent -cname -resp     # CNAMEs (subdomain takeover hunting)
cat domains.txt | dnsx -silent -mx -resp        # mail
cat domains.txt | dnsx -silent -txt -resp       # SPF/DMARC and verification records

# Filter out wildcard noise
cat candidates.txt | dnsx -silent -wd example.com