Linux command
dnsx 命令
文本
涉及管道、覆盖或删除,执行前请先确认路径和参数。
常用示例
Resolve A records
cat [domains.txt] | dnsx -a
Resolve multiple
cat [domains.txt] | dnsx -a -aaaa -mx -ns
Resolve with
cat [domains.txt] | dnsx -r [8.8.8.8]
Output in JSON
cat [domains.txt] | dnsx -json
Brute force subdomains
dnsx -d [domain.com] -w [wordlist.txt]
Reverse DNS
cat [ips.txt] | dnsx -ptr
Rate limit requests
cat [domains.txt] | dnsx -rate-limit [100]
说明
dnsx is a fast, multi-purpose DNS toolkit designed for security reconnaissance. It runs DNS queries efficiently, supporting multiple record types, custom resolvers, and high-performance parallel execution. The tool excels at bulk DNS operations including resolution, reverse lookups, and subdomain brute forcing. It accepts input from stdin, making it easy to integrate into reconnaissance pipelines with other tools. dnsx supports wildcard filtering, retries, and various output formats. Its focus on performance makes it suitable for large-scale DNS enumeration tasks.
参数
- -a
- Query A records.
- -aaaa
- Query AAAA records.
- -mx
- Query MX records.
- -ns
- Query NS records.
- -ptr
- Query PTR records.
- -cname
- Query CNAME records.
- -d _DOMAIN_
- Target domain for subdomain brute force.
- -w _FILE_
- Wordlist for brute force.
- -r _RESOLVER_
- Custom DNS resolver.
- -json
- Output in JSON format.
- -rate-limit _N_
- Max queries per second.
- -help
- Display help information.
FAQ
What is the dnsx command used for?
dnsx is a fast, multi-purpose DNS toolkit designed for security reconnaissance. It runs DNS queries efficiently, supporting multiple record types, custom resolvers, and high-performance parallel execution. The tool excels at bulk DNS operations including resolution, reverse lookups, and subdomain brute forcing. It accepts input from stdin, making it easy to integrate into reconnaissance pipelines with other tools. dnsx supports wildcard filtering, retries, and various output formats. Its focus on performance makes it suitable for large-scale DNS enumeration tasks.
How do I run a basic dnsx example?
Run `cat [domains.txt] | dnsx -a` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a do in dnsx?
Query A records.