# Dnsx Resolve

> Use dnsx for bulk DNS record querying and resolution. Use when you need bulk DNS resolution, subdomain liveness validation, A/AAAA/CNAME/NS/MX/TXT record queries, or wildcard filtering. dnsx is a high-speed DNS toolkit from ProjectDiscovery, supporting multiple record type queries and automatic wildcard filtering. Any scenario involving DNS resolution, subdomain validation, or DNS record collection should use this skill

- Skill: `dangeroussong/dnsx-resolve` (Agent Skill)
- Install (CLI): `npx get-skill add dangeroussong/dnsx-resolve`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dangeroussong/dnsx-resolve/raw
- Safety review: pending (external: skill-scanner PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: DangerousSONG (https://skillmd.com/u/dangeroussong)
- Updated: 2026-11-19
- Page: https://skillmd.com/skills/dangeroussong/dnsx-resolve

---


# dnsx Bulk DNS Resolution Methodology
- 攻击大类:C46 二进制漏洞利用与Pwn

dnsx is a high-speed DNS tool from ProjectDiscovery. Core advantages: **multiple record types** + **automatic wildcard filtering** + **pipeline friendly**.

Project URL: https://github.com/projectdiscovery/dnsx

## Phase 1: Basic Resolution

```bash
# A record for a single domain
echo target.com | dnsx -a -resp

# bulk resolution
dnsx -l subdomains.txt -a -resp -silent

# multiple record types
echo target.com | dnsx -a -aaaa -cname -ns -mx -txt -resp
```

## Phase 2: Subdomain Validation

```bash
# validate subdomain liveness
subfinder -d target.com -silent | dnsx -silent

# filter out wildcard domains
subfinder -d target.com -silent | dnsx -wd target.com -silent

# extract IP addresses
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u
```

## Phase 3: Advanced Usage

```bash
# brute-force enumerate subdomains
dnsx -d target.com -w subdomains-wordlist.txt -silent

# custom DNS resolvers
dnsx -l domains.txt -a -resp -r 8.8.8.8,1.1.1.1

# PTR reverse resolution
echo 10.0.0.1 | dnsx -ptr -resp

# JSON output
dnsx -l domains.txt -a -resp -json -o results.json

# Control concurrency
dnsx -l domains.txt -a -t 200 -silent
```

## Pipeline Integration

```bash
# subdomain → DNS resolution → IP deduplication
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u

# subdomain → DNS validation → HTTP liveness check
subfinder -d target.com -silent | dnsx -silent | httpx -silent

# CNAME extraction (for subdomain takeover detection)
subfinder -d target.com -silent | dnsx -cname -resp -silent
```

