What is WHOIS command?
WHOIS command is a TCP-based query/response utility and protocol (port 43) used to lookup registration details for domain names, IP addresses, and autonomous system numbers in public databases maintained by registrars and regional internet registries (RIRs). It retrieves information such as registrant contact details, creation/expiration dates, name servers, and status. Key characteristics include plain-text queries, hierarchical referral system (thin vs. thick registries), and increasing privacy protections (e.g., GDPR redaction).



Why Understand WHOIS command?
- Fundamental OSINT tool for reconnaissance: Reveals domain ownership, contacts, and timelines.
- Offensive relevance: Attackers use it to footprint targets, identify related domains, or harvest emails for phishing.
- Defensive impacts: Exposed personal data risks doxxing, spam, or targeted attacks.
- Privacy risks: Pre-GDPR outputs leaked full contacts; now often redacted, but historical data may persist.
Leverage WHOIS responsibly—it's a powerful intel source but privacy-sensitive. 🔒
Common Use Cases
- Checking domain availability and registration details before purchase.
- Investigating abusive domains (spam, malware) for takedown requests.
- Mapping organizational infrastructure via shared registrants or name servers.
- Verifying domain expiration to prevent hijacking.



Exploitation Examples
OSINT Reconnaissance for Targeting