Scroll to navigation

DNSRECON(1) General Commands Manual DNSRECON(1)

NAME

dnsrecon - DNS Enumeration and Scanning Tool

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]

DESCRIPTION

dnsrecon is a simple python script that enables to gather DNS-oriented information on a given target.

OPTIONS

Show help message and exit.
Target domain.
File containing a list of domains to perform DNS enumeration on, one per line.
Domain server to use. If none is given, the SOA of the target will be used. Multiple servers can be specified using a comma separated list.
IP range for reverse lookup brute force in formats (first-last) or in (range/bitmask).
Dictionary file of subdomain and hostnames to use for brute force.
Filter out of brute force domain lookup, records that resolve to the wildcard defined IP address when saving records.
Perform AXFR with standard enumeration.
Perform Bing enumeration with standard enumeration.
Perform a reverse lookup of IPv4 ranges in the SPF record with standard enumeration.
Perform Yandex enumeration with standard enumeration.
Perform crt.sh enumeration with standard enumeration.
Perform deep whois record analysis and reverse lookup of IP ranges found through Whois when doing a standard enumeration.
Use Shodan to query netblocks discovered via SPF (-s) and/or Whois (-w) during standard enumeration.
Actively validate Shodan-discovered names by resolving them and confirming they still match the queried netblock.
Shodan API key. If omitted, SHODAN_API_KEY environment variable is used.
Performs a DNSSEC zone walk with standard enumeration.
Number of threads to use in reverse lookups, forward lookups, brute force and SRV record enumeration.
Time to wait for a server to respond to a query. Default is 3.0.
Set log level. Possible values are DEBUG, INFO, WARNING, ERROR, CRITICAL. Default is INFO.
Use TCP protocol to make queries.
SQLite 3 file to save found records.
XML file to save found records.
Comma separated value file.
Save output to a JSON file.
Continue brute forcing a domain even if wildcard records are discovered.
Disables check for NXDOMAIN hijacking on name servers.
Disables check for recursion on name servers
Disable recursion desired flag in queries.
Disables check for BIND version on name servers.
Enable verbose.
Show version.
Type of enumeration to perform. There are several possible types:
• 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 -D option.
• 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

dnsrecon -t axfr -d zonetransfer.me