#Why this matters
Every public web application, mail gateway, and API relies on domains, IP addresses, and routing announcements to stay reachable. Infrastructure intelligence connects isolated hostnames into a map of ownership, hosting providers, and third-party services for both attack-surface audits and threat investigations.
Building on OSINT methodology and search dorking, this lesson focuses on public registries and internet routing. Most of this collection is passive, querying third-party logs rather than scanning target ports.
#Domain registration: WHOIS and RDAP
WHOIS is the legacy text protocol for domain and IP registration records, while RDAP (Registration Data Access Protocol) is its structured JSON-over-HTTPS replacement. Privacy rules such as GDPR redact personal registrant names and emails in most public records.
Redacted records still retain high-value pivoting metadata:
- Creation, update, and expiry dates: A domain registered two days ago impersonating an established brand is a strong phishing indicator.
- Registrar and status codes: Normal domains carry locks like
clientTransferProhibited; sudden registrar shifts can signal hijacking. - Authoritative nameservers: Dedicated nameservers (such as
ns1.example.test) often serve multiple domains owned by the same organization.
$ whois example.test | grep -E "Registrar:|Creation Date:|Name Server:"
Registrar: Example Registrar Ltd.
Creation Date: 2024-03-14T09:12:00Z
Name Server: NS1.EXAMPLE.TEST
Name Server: NS2.EXAMPLE.TEST#DNS records and TXT intelligence
DNS translates names into addresses and service records. With dig, an analyst can inspect key record types directly:
| Record | Maps to | OSINT value |
|---|---|---|
A / AAAA |
IPv4 / IPv6 address | Reveals hosting IP or CDN edge |
MX |
Mail exchangers | Identifies email platform (cloud or self-hosted) |
NS |
Authoritative nameservers | Links sister domains managed together |
TXT |
Verification and policy strings | Exposes SaaS vendors and SPF mail senders |
PTR |
Hostname for an IP | Distinguishes cloud hosts from ISP lines |
TXT records frequently expose external SaaS integrations through domain-verification tokens and Sender Policy Framework (SPF) rules listing permitted mail-sending IP ranges.
$ dig example.test MX +noall +answer
example.test. 300 IN MX 10 mail-gw.example.test.
$ dig example.test TXT +noall +answer
example.test. 300 IN TXT "v=spf1 ip4:192.0.2.0/24 include:_spf.mailvendor.test -all"
example.test. 300 IN TXT "atlassian-domain-verification=8f3kL9q2xP"Two dig queries show that example.test operates a mail gateway on 192.0.2.0/24, authorizes mailvendor.test, and verified Atlassian cloud services.
#Certificate Transparency and passive DNS
When a Certificate Authority issues a publicly trusted TLS certificate, it submits the certificate to public Certificate Transparency (CT) logs. Search portals like crt.sh index those logs, exposing subdomains such as vpn.example.test or staging-auth.example.test without sending packets to the target.
$ curl -s "https://crt.sh/?q=%25.example.test&output=json" | jq -r '.[].name_value' | sort -u
api.example.test
example.test
staging-auth.example.test
vpn.example.testKeep two CT limits in mind: logs are append-only, so retired subdomains remain searchable forever, and wildcard certificates (*.example.test) omit individual hostnames.
Passive DNS complements CT logs by storing historical DNS answers observed by global sensors. When a site moves behind a Content Delivery Network (CDN), passive DNS often reveals the pre-CDN origin IP or earlier co-hosted domains.
#IP intelligence, ASNs, and pivoting
Once you resolve an IP address, identify who routes it. Networks operate as Autonomous Systems, each identified by an ASN announcing IP prefixes via BGP. BGPView maps an IP such as 192.0.2.45 to its announced prefix (192.0.2.0/24), ASN (AS64512), owning organization, and upstream peers.
- Seed domainWHOIS/RDAP & crt.sh CT logs
- DNS recordsdig A, MX, TXT, NS
- IP & ASN pivotBGPView prefix & passive DNS
- Verify scopeConfirm ownership before reporting
Pivoting links one confirmed selector to the next: an SPF TXT record points to a /24 prefix, an ASN lookup reveals sibling prefixes, and passive DNS surfaces other domains resolving there. Always verify ownership before attributing co-tenants, since hundreds of unrelated domains often share one CDN or cloud IP.
#Defending and common mistakes
Defenders cannot hide public DNS or CT records, so focus on visibility and hygiene: monitor CT logs for unexpected or lookalike certificates, audit TXT and MX records regularly to retire stale vendors, and configure origin servers to accept traffic only from your CDN.
Common analyst mistakes include:
- Treating a CDN or WAF edge IP as the target's origin server.
- Assuming all co-hosted domains on a shared cloud IP share an owner.
- Reporting retired CT hostnames without checking whether they still resolve.
- Running noisy active DNS brute-forcing before exhausting passive sources.
#Summary
- WHOIS and RDAP provide registration dates, registrars, and nameservers despite contact redaction.
digqueries forA,MX,NS,PTR, andTXTrecords reveal hosting, mail routing, and SaaS dependencies.- Certificate Transparency (
crt.sh) and passive DNS uncover subdomains and historical IP mappings passively. - BGPView ASN and prefix lookups connect IPs to routed networks, requiring ownership checks on shared hosting.