SuperAPI AI Directory

dnsx-resolve

Security & auditing

View repository

Updated 10-16 05:46

About this skill

dnsx DNS batch resolution methodology

dnsx is a high-speed DNS tool from ProjectDiscovery. Core advantages:Multiple record types + Automatic wildcard filtering + Pipeline-friendly。

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

Phase 1: Basic resolution

# 单域名 A 记录
echo target.com | dnsx -a -resp

# 批量解析
dnsx -l subdomains.txt -a -resp -silent

# 多记录类型
echo target.com | dnsx -a -aaaa -cname -ns -mx -txt -resp

Phase 2: Subdomain verification

# 验证子域名存活
subfinder -d target.com -silent | dnsx -silent

# 过滤通配符域名
subfinder -d target.com -silent | dnsx -wd target.com -silent

# 提取 IP 地址
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u

Phase 3: Advanced usage

# 暴力枚举子域名
dnsx -d target.com -w subdomains-wordlist.txt -silent

# 自定义 DNS 解析器
dnsx -l domains.txt -a -resp -r 8.8.8.8,1.1.1.1

# PTR 反向解析
echo 10.0.0.1 | dnsx -ptr -resp

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

# 控制并发
dnsx -l domains.txt -a -t 200 -silent

Pipeline integration

# 子域名 → DNS 解析 → IP 去重
subfinder -d target.com -silent | dnsx -a -resp-only -silent | sort -u

# 子域名 → DNS 验证 → HTTP 探活
subfinder -d target.com -silent | dnsx -silent | httpx -silent

# CNAME 提取(用于子域名接管检测)
subfinder -d target.com -silent | dnsx -cname -resp -silent