Domains and infrastructure · Overview

DNS and subdomains: what a domain’s public records reveal and how to discover its hidden services

How to use DNS in open-source investigations: A, MX, NS, TXT, CNAME, SOA and PTR records, what SPF, DMARC and verification codes reveal, how to find subdomains with certificate logs and passive DNS, historical DNS behind CDNs, tools, an example, legal limits and documentation.

The DNS is the Internet’s phone book: it translates website names into server addresses. But to work it publishes much more: which mail provider a domain uses, which services it has verified, which servers manage it, which subdomains exist. Everything is public by design, because any computer in the world must be able to read this information.

For an analyst it is a goldmine. A text record can reveal that a company uses a certain mail or analytics service; a forgotten subdomain can expose a test environment or an admin panel; a historical address can point to the real server of a site now shielded by a CDN. All without touching the target’s systems, by consulting open sources.

1983year the DNS was born, with Paul Mockapetris’s first specifications
13identities of the DNS root servers, from A to M
12independent organisations operating the root servers

The most useful records

A and AAAA
IPv4 and IPv6 addresses the name answers on.
MX
Mail servers: they reveal the email provider.
NS
Authoritative servers: who manages the domain’s DNS.
TXT
SPF, DMARC and verification codes of outside services.
CNAME
Alias to another name, often a third-party service.
SOA
Primary server, technical address and zone version number.
PTR
Name associated with an IP address, in reverse resolution.
CAA
Certificate authorities allowed to issue certificates for the domain.

DNS completes the research on registration, explained in WHOIS and domains, and leads to IP addresses and networks and certificates; for the basic entries see DNS, subdomain and historical DNS.

DNS and subdomains

The pages of this topic

01 How it works

DNS 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.

02 Technique

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.

03 Sources

DNS and subdomains: sources

The sources for DNS research: authoritative servers, Certificate Transparency logs, passive DNS, search engines, web archives, SPF and DMARC records.

04 Tools

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.

05 Worked example

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.

06 Legal and ethical limits

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.

07 How to document

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.

08 FAQ

DNS and subdomains: frequently asked questions

Short answers to the most common questions about DNS, records and subdomains in open-source investigations.

↑