From 7c6843073540c70a73dcc17e649a73955849e25a Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Sun, 7 Apr 2024 17:33:45 +1000 Subject: [PATCH 1/8] dnsx: add page --- pages/common/dnsx.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/dnsx.md diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md new file mode 100644 index 0000000000000..ca03e52beae3e --- /dev/null +++ b/pages/common/dnsx.md @@ -0,0 +1,37 @@ +# dnsx + +> A fast and multi-purpose DNS toolkit allow to run multiple DNS queries. +> Input to `dnsx` needs to be passed through a pipe (`|`) in some cases. +> More information: . + +- Query the A record of a (sub)domain: + +`echo {{example.com}} | dnsx -a -re` + +- Query all the dns records (A,AAAA,CNAME,NS,TXT,SRV,PTR,MX,SOA,AXFR,CAA): + +`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): + +`echo {{example.com}} | dnsx -ro` + +- Display raw response of a query (`dig` style output), specifying [r]esolvers to use and retry attempts for failures: + +`echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}` + +- Brute force DNS records using `FUZZ` placeholder: + +`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: + +`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: + +`subfinder -silent -d {{example.com}} | dnsx -cname -re -rl {{number}}` From 484f5b621a758fd21def771de0668fa8001db819 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Sun, 7 Apr 2024 18:17:33 +1000 Subject: [PATCH 2/8] dnsx: clarify description text --- pages/common/dnsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index ca03e52beae3e..76420b6d13123 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -1,7 +1,7 @@ # dnsx > A fast and multi-purpose DNS toolkit allow to run multiple DNS queries. -> Input to `dnsx` needs to be passed through a pipe (`|`) in some cases. +> Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases. > More information: . - Query the A record of a (sub)domain: From f40f56984f96b069a63443c2a7d87453813aa91f Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Mon, 8 Apr 2024 09:12:25 +1000 Subject: [PATCH 3/8] Update pages/common/dnsx.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/common/dnsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index 76420b6d13123..305fcfb20e56c 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -8,7 +8,7 @@ `echo {{example.com}} | dnsx -a -re` -- Query all the dns records (A,AAAA,CNAME,NS,TXT,SRV,PTR,MX,SOA,AXFR,CAA): +- Query all the DNS records (A,AAAA,CNAME,NS,TXT,SRV,PTR,MX,SOA,AXFR,CAA): `dnsx -recon -re <<< {{example.com}}` From 3f57d93199330c654988d4281051feb7df199b31 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Mon, 8 Apr 2024 09:12:56 +1000 Subject: [PATCH 4/8] Update pages/common/dnsx.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/common/dnsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index 305fcfb20e56c..74d93a99f7c53 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -32,6 +32,6 @@ `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: +- Extract `CNAME` records for the given list of subdomains, with [r]ate [l]imiting DNS queries per second: `subfinder -silent -d {{example.com}} | dnsx -cname -re -rl {{number}}` From bde235ac0220df1f8707903ef75aedea4b4914fc Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Mon, 8 Apr 2024 09:43:18 +1000 Subject: [PATCH 5/8] dnsx: remove word FUZZ from example description --- pages/common/dnsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index 74d93a99f7c53..c42cd134422d7 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -24,7 +24,7 @@ `echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}` -- Brute force DNS records using `FUZZ` placeholder: +- Brute force DNS records using a placeholder: `dnsx -domain {{FUZZ.example.com}} -wordlist {{path/to/wordlist.txt}} -re` From a5300087514a3a1cab597b27712d4c53130821a6 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Wed, 10 Apr 2024 15:42:54 +1000 Subject: [PATCH 6/8] Update pages/common/dnsx.md Co-authored-by: K.B.Dharun Krishna --- pages/common/dnsx.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index c42cd134422d7..cfe9267d82314 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -1,6 +1,6 @@ # dnsx -> A fast and multi-purpose DNS toolkit allow to run multiple DNS queries. +> A fast and multi-purpose DNS toolkit to run multiple DNS queries. > Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases. > More information: . From a27ae483d94fd4e1da0d48c4292b8d9a5d52e26e Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Thu, 11 Apr 2024 10:51:48 +1000 Subject: [PATCH 7/8] dnsx: update description of examples --- pages/common/dnsx.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index cfe9267d82314..7f36160784004 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -4,7 +4,7 @@ > Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases. > More information: . -- Query the A record of a (sub)domain: +- Query the A record of a (sub)domain and show [re]sponse received: `echo {{example.com}} | dnsx -a -re` @@ -20,7 +20,7 @@ `echo {{example.com}} | dnsx -ro` -- Display raw response of a query (`dig` style output), specifying [r]esolvers to use and retry attempts for failures: +- Display raw response of a query, specifying [r]esolvers to use and retry attempts for failures: `echo {{example.com}} | dnsx -{{debug|raw}} -resolver {{1.1.1.1,8.8.8.8,...}} -retry {{number}}` From ab4128bb930534d8d917c5df12b01c1f5b1dccc0 Mon Sep 17 00:00:00 2001 From: Fazle Arefin Date: Thu, 11 Apr 2024 12:08:03 +1000 Subject: [PATCH 8/8] Update pages/common/dnsx.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Vítor Henrique <87824454+vitorhcl@users.noreply.github.com> --- pages/common/dnsx.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/common/dnsx.md b/pages/common/dnsx.md index 7f36160784004..1f9f473ee959b 100644 --- a/pages/common/dnsx.md +++ b/pages/common/dnsx.md @@ -2,6 +2,7 @@ > A fast and multi-purpose DNS toolkit to run multiple DNS queries. > Note: input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases. +> See also: `dig`, `dog`, `dnstracer`. > More information: . - Query the A record of a (sub)domain and show [re]sponse received: