dig <domain>Queries the A records for a domain with full detail.
Example
dig example.comThe go-to DNS lookup tool: query any record type, pick the server, attempt zone transfers and trace resolution from the root — essential for recon.
sudo apt install dnsutilsdig <domain>Queries the A records for a domain with full detail.
Example
dig example.comdig <domain> +shortJust the answer, ideal for scripts.
Example
dig example.com +shortdig <domain> <type>Queries a specific record type: A, AAAA, MX, NS, TXT, SOA, CNAME, SRV, CAA, PTR.
Example
dig example.com MXdig <domain> ANYAsks for all record types (many servers now refuse or minimise this).
Example
dig example.com ANYdig @<server> <domain>Queries a specific DNS server instead of your resolver.
Example
dig @1.1.1.1 example.comdig <domain> NS +shortThe authoritative name servers — the first step before a zone transfer attempt.
Example
dig example.com NS +shortdig <domain> TXT +shortTXT records, which hold SPF, DKIM, DMARC and verification tokens that can leak services in use.
Example
dig example.com TXT +shortdig -x <ip> +shortReverse lookup: the PTR record for an IP.
Example
dig -x 203.0.113.10 +shortdig axfr <domain> @<ns>Attempts a zone transfer; a misconfigured server dumps every record — a classic finding.
Example
dig axfr example.com @ns1.example.comdig <domain> +traceTraces resolution from the root servers down, showing the full delegation path.
Example
dig example.com +tracedig CAA <domain> +shortWhich certificate authorities are allowed to issue for the domain.
Example
dig CAA example.com +shortdig <domain> +noall +answerPrints only the answer section.
Example
dig example.com +noall +answerdig <domain> +dnssecRequests DNSSEC records (RRSIG) to check signing.
Example
dig example.com +dnssecdig +nssearch <domain>Queries each authoritative server for the SOA to spot inconsistencies.
Example
dig +nssearch example.comLooks up registration records for domains, IP addresses and autonomous systems — ownership, dates and abuse contacts for attack-surface mapping.
A DNS enumeration script: record retrieval, zone transfers, subdomain brute forcing, reverse lookups, SRV discovery and certificate-log harvesting.
In-depth attack-surface mapping: discovers subdomains through passive sources, DNS brute-forcing and permutation, and graphs the results.
A fast, multi-purpose DNS toolkit from ProjectDiscovery: bulk resolution, record lookups, brute forcing and filtering, built for recon pipelines.