WHOIS and DNS are the two oldest sources of domain intelligence. Both are passive — no traffic reaches the target — making them the natural starting point for any engagement.
WHOIS
WHOIS queries registration data for a domain: registrar, owner contact, creation/expiration dates, nameservers.
whois example.comWhat to Look For
- Registrant name / organization — confirms ownership, sometimes reveals internal naming
- Contact emails — email format gives you user discovery patterns (
first.last@company.com) - Registrar — some registrars allow easier abuse / takeovers
- Nameservers — points to DNS providers (Cloudflare, Route53, internal)
- Creation date — recently-registered domains look suspicious in reports
- Admin/Technical contact — targets for social engineering
Many modern domains use WHOIS privacy (REDACTED FOR PRIVACY, Contact Privacy Inc.), which hides the useful fields. Still check — not every org pays for privacy.
Historical WHOIS
Services like WhoisFreaks, SecurityTrails, DomainTools track WHOIS changes over time. Useful because:
- Older records may predate privacy services, exposing original contact info
- Pattern of ownership changes can reveal M&A activity, shell companies
- Changes in nameservers hint at infrastructure migrations
DNS Enumeration
Covered in depth in the Footprinting module. Quick summary of what matters here:
Record Types Worth Querying
dig A TARGET.com # IPv4 addresses
dig AAAA TARGET.com # IPv6
dig MX TARGET.com # mail servers
dig TXT TARGET.com # SPF, DKIM, verification tokens
dig NS TARGET.com # nameservers
dig CNAME subdomain.TARGET.com # alias — often reveals cloud provider
dig SOA TARGET.com # zone adminTXT Records Are Intelligence Gold
dig +short TXT TARGET.comReturns things like:
"v=spf1 include:_spf.google.com include:mailgun.org ~all"
"google-site-verification=xxxxx"
"MS=ms12345678"
"atlassian-domain-verification=xxxxx"
"stripe-verification=yyyy"
"docusign=xxxxx"
Each line tells you about services the organization uses:
include:_spf.google.com→ Google Workspace for emailinclude:mailgun.org→ Mailgun for transactional emailgoogle-site-verification→ Google Workspace adminMS=→ Microsoft 365atlassian-→ Jira/Confluence likely atatlassian.target.comor similarstripe-verification→ Payments via Stripedocusign=→ Uses DocuSign
Each service = potential subdomain to probe + potential attack surface (phishing with legitimate branding).
DMARC
dig +short TXT _dmarc.TARGET.comReturns:
"v=DMARC1; p=quarantine; rua=mailto:dmarc@TARGET.com"
p=none— DMARC configured but not enforced; spoofing worksp=quarantine— spoofed email lands in spamp=reject— spoofed email rejectedrua=mailto:— DMARC aggregate reports go to this address
For phishing engagements, a p=none or missing DMARC is a huge enabler.
Zone Transfer Attempt
Rare these days but always worth trying:
for ns in $(dig +short NS TARGET.com); do
echo "=== $ns ==="
dig axfr @$ns TARGET.com
doneSuccess = entire zone exposed = every hostname in one query.
Combining WHOIS + DNS
These two layers inform each other:
- WHOIS reveals the registrar + nameservers
- DNS reveals subdomains, mail infra, cloud services
- TXT records in DNS reveal third-party integrations
- Each integration implies a login surface at that provider (Workday, Salesforce, Zendesk) — potential credential-stuffing targets
Build a table:
| Source | What It Told You |
|---|---|
| WHOIS | Registered by Example Inc., admin contact john@example.com |
| NS | Google DNS (likely Google Workspace) |
| MX | aspmx.l.google.com (confirmed Google Workspace) |
| TXT SPF | +Mailgun, +SendGrid |
| TXT verification | +Atlassian, +Stripe |
| Subdomains | docs.example.com, jira.example.com, status.example.com |
That’s a complete first-pass intel profile without sending a single packet to the target.
