DNSENUM(1)
๐ DNSENUM(1) โ bestie's guide to the multithread script that enumerates info on a domain and discovers non-contiguous IP blocks ๐
okay so. this page lives in the User Contributed Perl Documentation corner of your system, and it's your bestie's guide to dnsenum. buckle up, it's giving recon era. ๐ฆ
โจ VERSION โจ
dnsenum version 1.3.1 โ yes she's on 1.3.1, no cap. ๐
๐ SYNOPSIS ๐
dnsenum [options] <domain> -f dns.txt
๐ DESCRIPTION ๐
okay so the supported operations are literally: nslookup, zonetransfer, google scraping, domain brute force (recursion too, she ate), whois ip and reverse lookups. periodt. ๐ซถ
The operations, in order, and I need you to follow along because they build on each other:
- Get the host's address (A record). ๐ธ
- Get the nameservers (threaded). โก
- Get the MX record (threaded). โก
- Perform AXFR queries on nameservers (threaded). ๐ฅ
- Get extra names and subdomains via google scraping (google query =
-www site:domain). ๐ - Brute force subdomains from (REQUIRED), can also perform recursion on subdomain that have NS records (all threaded). ๐ญ
- Calculate Class C IP network ranges from the results and perform whois queries on them (threaded). ๐ง
- Perform reverse lookups on netranges (class C or/and whois netranges)(threaded). ๐
- Write to
domain_ips.txtfile non-contiguous ip-blocks results. ๐
โจ OPTIONS โจ
lowkey the most important thing first: the brute force -f switch takes priority over the default dns.txt. ๐
๐ GENERAL OPTIONS ๐
--dnsserver <server>โ Use this DNS server to perform all A, NS and MX queries, the AXFR and PTR queries are sent to the domain's NS servers. no like fr, those AXFR and PTR ones go to the domain's NS servers, not your fancy custom one. ๐--enumโ Shortcut option equivalent to--threads 5 -s 20 -w. the lazy girl's combo meal, iconic. ๐-h,--helpโ Print the help message. bestie behaviour. ๐ซถ--noreverseโ Skip the reverse lookup operations. Reverse lookups can take long time on big netranges. โณ--nocolorโ Disable ANSIColor output. This option is only intended to be used on consoles that do not support color output. (so if your terminal can do color, don't come for me) ๐จ--privateโ Show and save private ips at the end of the filedomain_ips.txt. ๐--subfile <file>โ Write all valid subdomains to this file. Subdomains are taken from NS and MX records, zonetransfer, google scraping, brute force and reverse lookup hostnames. all the sources, all together, ngl. ๐-t,--timeout <value>โ The tcp and udp timeout values in seconds (default: 10s). โฐ--threads <va>โ The number of threads that will perform different queries. go off, parallelism. ๐งต-v,--verboseโ Be verbose (show all the progress and all the error messages). she's not shy, she's just talkative. ๐ฌ
Notes: neither the default domain nor the resolver search list are appended to domains that don't contain any dots. so bare single-word names stay bare, k? ๐ซ
๐ GOOGLE SCRAPING OPTIONS ๐
This function will scrap subdomains from google search, using query: -www site:domain. okay so basically we're asking google politely. ๐
-p,--pages <value>โ The number of google search pages to process when scraping names, the-sswitch must be specified, (default: 20 pages). ๐-s,--scrap <value>โ The maximum number of subdomains that will be scraped from google. ๐ฏ
NOTES: Google can block our queries with the malware detection. Http proxy options for google scraping are automatically loaded from the environment if the varshttp_proxyorHTTP_PROXYare present."http_proxy=http://127.0.0.1:8118/"or"HTTP_PROXY=http://127.0.0.1:8118/". On IO errors the mechanize browser object will automatically calldie. like literally die. the script ends. ๐
๐ฅ BRUTE FORCE OPTIONS ๐ฅ
-f,--file <file>โ Read subdomains from this file to perform brute force. ๐-u,--update <a|g|r|z>โ Update the file specified with the-fswitch with valid subdomains. ๐งพ-u aโ Update using all results. ๐-u gโ Update using only google scraping results. ๐-u rโ Update using only reverse lookup results. โฉ๏ธ-u zโ Update using only zonetransfer results. ๐
-r,--recursionโ Recursion on subdomains, brute force all discovered subdomains that have an NS record. ๐
NOTES: To perform recursion first we must check previous subdomains results (zonetransfer, google scraping and brute force) for NS records after that we perform brute force on valid subdomains that have NS records and so on. NS, MX and reverse lookup results are not concerned. so don't @ them. ๐ โโ๏ธ
๐ต๏ธ WHOIS IP OPTIONS ๐ต๏ธ
Perform whois ip queries on c class netanges discovered from previous operations. (yes, "netanges", that's the original's typo, I'm not frauding it ๐ )
-d,--delay <value>โ The maximum value of seconds to wait between whois queries, the value is defined randomly, (default: 3s). ๐ฒ-w,--whoisโ Perform the whois queries on c class network ranges. โ ๏ธ Warning: this can generate very large netranges and it will take lot of time to perform reverse lookups. like. a LOT. ๐ญ
NOTES: whois servers will limit the number of connections. and also: The whois query should recursively query the various whois providers until it gets the more detailed information including eitherTechPhoneorOrgTechPhoneby default. See:perldoc Net::Whois::IP. On errors the netrange will be a default c class/24. ๐ซถ
๐ REVERSE LOOKUP OPTIONS ๐
-e,--exclude <regexp>โ Exclude PTR records that match the regexp expression from reverse lookup results, useful on invalid hostnames. ๐ซ
NOTES: PTR records that not match the domain are also excluded. Verbose mode will show all results. so if you're nosy, add the verbose flag, bestie. ๐
๐ธ OUTPUT FILES ๐ธ
Final non-contiguous ip blocks are written to domain_ips.txt file. ๐
NOTES: Final non-contiguous ip blocks are calculated : โจ
- From reverse lookups that were performed on netranges ( c class network ranges or whois netranges ). ๐
- If the
noreverseswitch is used then they are calculated from previous operations results (nslookups, zonetransfers, google scraping and brute forcing). ๐งฎ
๐ฆ README ๐ฆ
dnsenum: multithread script to enumerate information on a domain and to discover non-contiguous ip blocks. โ yeah that's the whole vibe.
๐ PREREQUISITES ๐
Modules that are included in perl 5.28.0: Getopt::Long, IO::File, Thread::Queue.
Other Necessary modules: Must have: Net::DNS, Net::IP, Net::Netmask. Optional: Net::Whois::IP, HTML::Parser, WWW::Mechanize.
Perl ithreads modules (perl must be compiled with ithreads support): threads, threads::shared.
๐ AUTHORS ๐
Filip Waeytens <filip.waeytens[at]gmail.com>
tix tixxDZ <tixxdz[at]gmail.com>
๐ MAINTAINER ๐
Network Silence
๐ COPYRIGHT ๐
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
๐ SCRIPT CATEGORIES ๐
Networking DNS
okay bestie that's the whole page, we served, we ate, no crumbs left. ๐ฝ๏ธ๐
this gorgeous thing was brought to you by perl v5.40.1, dated 2026-01-16, and it's the one and only DNSENUM(1). mwah. ๐โจ๐
๐ฆ where this page comes from
- ubuntu resolute: dnsenum 1.3.2-1build1 ยท GPL-2.0-or-later
- ubuntu stonking: dnsenum 1.3.2-1build1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms