Information Gathering
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s).
sudo apt install dnsutils
dig <domain> [type]
Dig (Domain Information Groper) is the industry-standard DNS lookup tool from ISC. It queries DNS servers for any record type and provides detailed, structured responses that are essential for DNS troubleshooting and security assessment.
Unlike simpler tools like nslookup, dig provides complete DNS response data including headers, question sections, answer sections, and authority sections. This level of detail makes it indispensable for DNS professionals and security researchers.
Dig supports zone transfer testing, reverse DNS lookups, batch queries, and scriptable output formats. It is the tool of choice for DNS security assessments and troubleshooting complex DNS configurations.
| Command | Purpose |
|---|---|
dig <name> A | Query IPv4 address records. |
dig <name> MX | Query mail-exchanger records. |
dig @<server> <name> NS | Ask a specific DNS server for nameserver records. |
dig -x <address> | Perform a reverse-address lookup. |
dig example.com ANYIssue a QTYPE=ANY query; the server may return some or all available RRsetsdig example.com axfrZone transfer query - Request a complete zone transfer duplicate file from target nameserversdig example.comBasic A record lookupdig example.com MXMail server recordsdig example.com NSName server recordsdig example.com AXFR @ns1.example.comZone transferdig -x 192.168.1.1Reverse DNS lookupdig +short example.comShort outputdig example.com TXTTXT recordsdig example.com AQuery IPv4 address recordsdig example.com AAAAQuery IPv6 address recordsdig example.com SOAQuery start of authority recorddig example.com CNAMEQuery canonical name recordsdig @8.8.8.8 example.comQuery using Google DNS serverdig example.com +traceTrace full DNS resolution from rootdig example.com +shortShow only the answer IPdig -x 1.2.3.4Reverse DNS lookupdig example.com +noall +answerShow only answer sectiondig example.com AXFRRequest full DNS zone transferdig example.com +dnssecRequest DNSSEC secured recordsdig example.com NSECQuery next secure domain recorddig example.com DSQuery delegation signer recorddig example.com +statsShow query statisticsdig -f queries.txtBatch resolve from filedig example.com +time=5 +tries=3Set timeout and retriesdig example.com SRVQuery service location recordsdig example.com CAAQuery certificate authority recordsdig example.com +subnet=1.2.3.0/24EDNS client subnet queryQuery any DNS record type (A, AAAA, MX, NS, TXT, SOA, SRV).
Test if DNS servers allow unauthorized zone transfers.
Resolve IP addresses to hostnames using PTR records.
Diagnose DNS resolution issues with detailed query output.
Audit DNS configurations for security misconfigurations.
Information Gathering
DNSenum is a multithreaded Perl script for DNS enumeration that discovers DNS records, attempts zone transfers, brute-forces subdomains, and performs reverse lookups. It is a foundational reconnaissance tool in Kali Linux for mapping a target domain's DNS infrastructure.
Information Gathering
Learn how to use Subfinder in this beginner tutorial, from installing ProjectDiscovery's passive subdomain tool to running and reading your first authorised scan. Add API keys for wider coverage, save clean results, and chain Subfinder into httpx to validate live web hosts before further testing.
Information Gathering
OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.
Information Gathering
Fierce is a PERL script that quickly inspects a target domain for non-contiguous IP space and hosts by combining brute force testing, reverse lookup mapping, and wildcard tracking.
Information Gathering
DNSRecon provides the ability to check NS records, MX records, zone transfers, SRV records, and cache snooping capabilities within a comprehensive Python network inspection script environment.
Information Gathering
Masscan is an internet-scale port scanner. It can scan the entire Internet in under 6 minutes, transmitting up to 10 million packets per second utilizing asynchronous transmit setups.
Learn how to do DNS enumeration step by step with dig, nslookup, dnsrecon and gobuster — a worked example, tool comparison and cheat sheet.
Networking · IntermediateAn in-depth exploration of DNS architecture, resolution process, record types, caching, security threats, and privacy protocols like DoH and DoT.
Linux · BeginnerEssential Linux networking commands and configuration for IP addressing, routing, DNS, firewall rules, and network troubleshooting.
OSINT · BeginnerMaster DNS enumeration techniques from basic queries to advanced zone transfers, subdomain brute forcing, and DNS security assessment using Kali Linux tools.
Dig output shows DNS query results organized by record type. The ANSWER SECTION contains resolved records (A, AAAA, MX, NS, TXT, CNAME, SOA). Status code indicates success (NOERROR) or failure (NXDOMAIN). TTL values show caching duration. The AUTHORITY SECTION lists nameservers.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.