Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dnsx: add page #12618

Merged
merged 8 commits into from
Apr 11, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/common/dnsx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# dnsx

> A fast and multi-purpose DNS toolkit allow to run multiple DNS queries.
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved
> Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases.
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved
> More information: <https://github.com/projectdiscovery/dnsx>.

- Query the A record of a (sub)domain:
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved

`echo {{example.com}} | dnsx -a -re`

- Query all the dns records (A,AAAA,CNAME,NS,TXT,SRV,PTR,MX,SOA,AXFR,CAA):
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved

`dnsx -recon -re <<< {{example.com}}`

- Query a specific type of DNS record:

`echo {{example.com}} | dnsx -re -{{a|aaaa|cname|ns|txt|srv|ptr|mx|soa|any|axfr|caa}}`

- Output [r]esponse [o]nly (do not show the queried domain or subdomain):

Check failure on line 19 in pages/common/dnsx.md

View workflow job for this annotation

GitHub Actions / build

esponse ==> response, espouse

`echo {{example.com}} | dnsx -ro`

- Display raw response of a query (`dig` style output), specifying [r]esolvers to use and retry attempts for failures:
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved

`echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}`

- Brute force DNS records using `FUZZ` placeholder:
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved

`dnsx -domain {{FUZZ.example.com}} -wordlist {{path/to/wordlist.txt}} -re`

- Brute force DNS records from a list of [d]omains and wordlists, appending [o]utput to a file wih [n]o [c]olor codes:

Check failure on line 31 in pages/common/dnsx.md

View workflow job for this annotation

GitHub Actions / build

utput ==> output

Check failure on line 31 in pages/common/dnsx.md

View workflow job for this annotation

GitHub Actions / build

wih ==> with

`dnsx -domain {{path/to/domain.txt}} -wordlist {{path/to/wordlist.txt}} -re -output {{path/to/output.txt}} -no-color`

- Extract CNAME records for the given list of subdomains, with [r]ate [l]imiting dns queries per second:
fazlearefin marked this conversation as resolved.
Show resolved Hide resolved

`subfinder -silent -d {{example.com}} | dnsx -cname -re -rl {{number}}`