DNS and subdomains: technique
The technique for analysing a domain’s DNS: basic records, reading SPF, DMARC and verification codes, subdomains from certificates and passive DNS, infrastructure, addresses behind CDNs, elements shared between domains.
- 01
Read the basic records
A, AAAA, MX, NS, TXT, SOA, CAA.
- 02
Interpret the TXT records
SPF lists who may send mail for the domain; DMARC shows who receives reports; verification codes reveal the services used.
- 03
Look for subdomains in certificates
Certificate Transparency logs, including expired certificates.
- 04
Consult passive DNS
Historical subdomains and addresses, with the dates they were observed.
- 05
Trace the infrastructure
IP addresses, networks and hosting providers.
- 06
Look behind the CDN
Addresses from before services such as Cloudflare were used may point to the real server.
- 07
Look for shared elements
The same verification codes, mail servers or SPF services across several domains.
- 08
Note sensitive subdomains
Test environments, admin panels, forgotten services, without trying to access them.
dig MX example.com +short
dig TXT example.com +short
dig TXT _dmarc.example.com +short
dig -x 192.0.2.10 +short
curl -s "https://crt.sh/?q=%25.example.com&output=json"Every shared element is a possible pivot towards other domains of the same network.
DNS and subdomains: sources
The sources for DNS research: authoritative servers, Certificate Transparency logs, passive DNS, search engines, web archives, SPF and DMARC records.
The pages of this topic
Back to the overviewDNS and subdomains: how it works
How name resolution works, what a subdomain is, why subdomains are not listed anywhere and which sources reveal them: certificate logs, passive DNS, search engines, domain records.
DNS and subdomains: tools
The tools for analysing DNS and subdomains: dig and nslookup, crt.sh, Amass and Subfinder, graphical maps, passive DNS platforms, link analysis tools.
DNS and subdomains: guided example
A guided example on three fake review sites: identical verification codes, the same email sending service, subdomains with the same naming pattern, a historical address shared with a marketing agency.
DNS and subdomains: limits
The limits of DNS research: CDNs and proxies, incomplete passive DNS, wildcard certificates, outdated data, services shared by millions of domains, active techniques that get noticed, legal limits on accessing systems.
DNS and subdomains: how to document
How to document DNS research: responses saved with date and resolver, exports from certificate logs, passive DNS captures with source and dates, a table of clues and their strength.
DNS and subdomains: frequently asked questions
Short answers to the most common questions about DNS, records and subdomains in open-source investigations.