DNSRECON(1)
π DNSRECON(1) π
okay bestie, sit down, hydrate, because we're about to talk about dnsrecon from the General Commands Manual (section 1, obviously, it's giving main character CLI energy) and it's gonna be a whole journey π¦
β¨ NAME β¨
dnsrecon β the DNS Enumeration and Scanning Tool. yes that's literally its whole name. iconic. no notes. π
πΈ SYNOPSIS πΈ
dnsrecon [-h] [-d DOMAIN] [-iL INPUT_LIST] [-n NS_SERVER] [-r RANGE] [-D
DICTIONARY] [-f] [-a] [-s] [-b] [-y] [-k] [-w] [--shodan] [--shodan-
active] [--shodan-key SHODAN_KEY] [-z] [--threads THREADS] [--lifetime
LIFETIME] [--loglevel LEVEL] [--tcp] [--db DB] [-x XML] [-c CSV] [-j
JSON] [--iw] [--disable_check_nxdomain] [--disable_check_recursion]
[--disable_recurs] [--disable_check_bindversion] [-v] [-V] [-t TYPE]
look at all those flags. she's got range. π
π DESCRIPTION π
so like, dnsrecon is a simple python script that enables you to gather DNS-oriented information on a given target. that's it. that's the vibe. lowkey does a LOT though. π₯
π OPTIONS π
-h,--helpβ shows you the help message and then exits. the classic "wait what do i do" move π-d DOMAIN,--domain DOMAINβ your target domain. the one you're being nosy about. π-iL INPUT_LIST,--input-list INPUT_LISTβ a file containing a list of domains to perform DNS enumeration on, one per line. bulk mode, we love her. β¨-n NS_SERVER,--name_server NS_SERVERβ the domain server to use. if none is given, the SOA of the target will be used. and you can specify multiple servers using a comma separated list, because why choose one π«Ά-r RANGE,--range RANGEβ IP range for reverse lookup brute force, in formats(first-last)or in(range/bitmask).-D DICTIONARY,--dictionary DICTIONARYβ dictionary file of subdomain and hostnames to use for brute force. bring your own wordlist bestie π-fβ filters out of brute force domain lookup the records that resolve to the wildcard defined IP address when saving records. keeping things tidy, we stan a clean output. π§-aβ perform AXFR with standard enumeration. zone transfer time?? π-bβ perform Bing enumeration with standard enumeration.-sβ perform a reverse lookup of IPv4 ranges in the SPF record with standard enumeration.-yβ perform Yandex enumeration with standard enumeration.-kβ perform crt.sh enumeration with standard enumeration.-wβ perform deep whois record analysis and reverse lookup of IP ranges found through Whois when doing a standard enumeration. she's thorough. π--shodanβ use Shodan to query netblocks discovered via SPF (-s) and/or Whois (-w) during standard enumeration.--shodan-activeβ actively validate Shodan-discovered names by resolving them and confirming they still match the queried netblock. no ghost data allowed π--shodan-key SHODAN_KEYβ your Shodan API key. if you omit it, theSHODAN_API_KEYenvironment variable is used instead. β¨-zβ performs a DNSSEC zone walk with standard enumeration.--threads THREADSβ number of threads to use in reverse lookups, forward lookups, brute force and SRV record enumeration. go fast, but like, responsibly πβοΈ--lifetime LIFETIMEβ time to wait for a server to respond to a query. default is3.0. β³--loglevel LEVELβ set the log level. possible values areDEBUG,INFO,WARNING,ERROR,CRITICAL. default isINFO.--tcpβ use the TCP protocol to make queries instead of, y'know, the other one. π--db DBβ SQLite 3 file to save found records.-x XML,--xml XMLβ XML file to save found records.-c CSV,--csv CSVβ comma separated value file.-j JSON,--json JSONβ save output to a JSON file. for the json girlies π--iwβ continue brute forcing a domain even if wildcard records are discovered. stubborn? no, dedicated. π€--disable_check_nxdomainβ disables the check for NXDOMAIN hijacking on name servers.--disable_check_recursionβ disables the check for recursion on name servers.--disable_recursβ disable the recursion desired flag in queries.--disable_check_bindversionβ disables the check for BIND version on name servers.-vβ enable verbose. tell me EVERYTHING π£οΈ-Vβ show version.-t TYPE,--type TYPEβ the type of enumeration to perform. there are several possible types, and this is where it gets fun:std: SOA, NS, A, AAAA, MX and SRV.rvl: reverse lookup of a given CIDR or IP range.brt: brute force domains and hosts using a given dictionary.srv: SRV records.axfr: test all NS servers for a zone transfer.bing: perform Bing search for subdomains and hosts.yand: perform Yandex search for subdomains and hosts.crt: perform crt.sh search for subdomains and hosts.caa: CAA records.snoop: perform cache snooping against all NS servers for a given domain, testing all with file containing the domains, file given with-Doption.tld: remove the TLD of given domain and test against all TLDs registered in IANA.zonewalk: perform a DNSSEC zone walk using NSEC records.
π EXAMPLES π
this one attempts a zone transfer (AXFR) on the zonetransfer.me domain. go little rockstar πΈ
dnsrecon -t axfr -d zonetransfer.me
and that's the whole page bestie, no cap. this gorgeous specimen of documentation lives in the General Commands Manual as DNSRECON(1) β section 1, where all the cool user commands hang out π«Άπ go enumerate something responsibly, mwah β¨ππ¦
π¦ where this page comes from
- ubuntu stonking: dnsrecon 1.6.0-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms