Information Gathering
Whois is a query and response protocol used for querying databases that store registered users of Internet resources. It provides information about domain registration, ownership, registrar details, name servers, and expiration dates for any domain or IP address block.
sudo apt install whois
whois <domain-or-ip>
WHOIS is a standardized query-and-response protocol defined in RFC 3912 that enables users to retrieve publicly available registration data for Internet resources. When you perform a whois lookup, your client queries a centralized WHOIS server maintained by the relevant registrar or Regional Internet Registry (RIR) and returns structured records about domain ownership, name servers, and registration dates.
Domain WHOIS lookups reveal critical details including the registrar name (such as GoDaddy, Namecheap, or Google Domains), the registrant organization or individual, administrative and technical contact information, the domain creation date, the last updated timestamp, the expiration date, and the authoritative name servers that resolve the domain's DNS records. For a complete picture of a domain's infrastructure, combine WHOIS results with DNS Lookup records to see how the domain resolves to IP addresses and mail servers.
IP WHOIS lookups query the five Regional Internet Registries (ARIN, RIPE NCC, APNIC, LACNIC, and AFRINIC) to identify the organization that owns a given IP address block. This information includes the network range (CIDR block), the organization name, the country of registration, and abuse contact details, making IP whois an essential tool for network administrators and threat investigators. For enriched IP intelligence including geolocation, ASN, and ISP details, pair WHOIS results with IP Lookup.
Modern WHOIS databases are increasingly subject to GDPR and privacy regulations. Many registrars now offer WHOIS privacy protection services that replace real contact details with proxy information. This means registrant data may be redacted, incomplete, or show a privacy service instead of the actual domain owner. Understanding these limitations is crucial when conducting domain research.
WHOIS information is invaluable for OSINT investigations, brand protection monitoring, competitive intelligence, threat actor tracking, and verifying the legitimacy of suspicious websites. Security professionals use whois domain lookups to map infrastructure, identify domain age using a Domain Age Checker, and discover related domains registered by the same entity. For suspicious URLs, combine WHOIS data with URL Risk Analyzer to assess threat potential.
whois example.comDomain lookup - Retrieve complete registration details for a domain namewhois google.comLook up Google's domain registration, registrar, and name server informationwhois github.comQuery GitHub's domain ownership, creation date, and expiration detailswhois 8.8.8.8IP WHOIS lookup - Identify the organization and network block owning an IP addresswhois 1.1.1.1IP WHOIS lookup for Cloudflare's public DNS resolver addresswhois -h whois.arin.net 8.8.8.8Query ARIN (American Registry for Internet Numbers) for IP allocation detailswhois -h whois.iana.org example.comQuery the IANA authoritative server for root-level domain registration datawhois -h whois.ripe.net 8.8.8.8Query RIPE NCC for IP address registration data in the European regionwhois example.com | grep -iE 'registrar|creation|expir|name server'Filter output to the key fields: registrar, creation date, expiry, and name serverswhois example.com > whois_example_$(date +%F).txtSave results to a timestamped file for reproducible investigation recordsfor d in $(cat domains.txt); do echo "== $d =="; whois "$d"; sleep 2; doneBatch lookup a list of domains with a delay to avoid registry rate limitswhois $(dig +short example.com | tail -1)Resolve a domain to its IP with dig, then run IP WHOIS on the result (recon chaining)Investigate domain ownership, registration dates, registrar details, and name server configuration for any publicly registered domain name.
Identify the organization, network block, CIDR range, and country associated with any public IP address through Regional Internet Registry queries.
Determine which registrar manages a domain, find the WHOIS server for that registrar, and extract registrar-specific registration policies.
Examine authoritative name servers, DNSSEC status, and DNS configuration details that reveal the target's infrastructure choices.
Discover the registrant, administrative, and technical contacts for a domain. Identify privacy-protected registrations and proxy services.
Assess domain age, registration patterns, and infrastructure connections to evaluate the legitimacy and risk profile of a target domain.
| Feature | WHOIS | RDAP |
|---|---|---|
| Transport | TCP port 43, plain text | HTTPS REST |
| Output Format | Unstructured free text | Structured JSON |
| Schema Consistency | Varies per registry | Standardized (IETF) |
| Access Control | All-or-nothing | Tiered / authenticated access |
| Internationalization | Limited | Native UTF-8 support |
| Successor Status | Legacy (RFC 3912) | ICANN-mandated successor |
| Best For | Quick manual lookups | Automation & compliance |
| Feature | WHOIS | DNS Lookup |
|---|---|---|
| Data Source | Registrar/registry database | Authoritative name servers |
| Answers | Who registered it & when | Where it resolves right now |
| Ownership Info | Yes (if public) | No |
| Record Types | Registration fields | A, AAAA, MX, NS, TXT, CNAME |
| Freshness | Can lag behind changes | Real-time (TTL-bound) |
| Best For | Ownership & registration | Resolution & mail routing |
| Feature | WHOIS | Amass | theHarvester |
|---|---|---|---|
| Primary Output | Registration data | Subdomains & attack surface | Emails, hosts, names |
| Data Gathering | Single registry query | Aggregates many sources | Aggregates many sources |
| Passive/Active | Passive | Passive + optional active | Passive |
| Scope | One domain/IP | Whole org footprint | Domain-wide OSINT |
| Pipeline Role | Seed / attribution | Expansion | Enrichment |
| Best For | Ownership & dates | Mapping infrastructure | Contact & host discovery |
| Feature | WHOIS | Shodan |
|---|---|---|
| Focus | Registration & ownership | Exposed services & banners |
| Data Origin | Registry databases | Internet-wide scan index |
| Reveals Ports/Services | No | Yes |
| Historical Data | Limited (current) | Yes (historical banners) |
| Query Method | CLI / port 43 | Web + API |
| Best For | Domain/IP attribution | Exposure & service discovery |
| Feature | Stage | Tool | Output |
|---|---|---|---|
| 1. Attribution | Who owns it? | WHOIS / RDAP | Registrar, org, dates, name servers |
| 2. DNS Enumeration | What records exist? | dig / DNSenum | A, MX, NS, TXT records |
| 3. Subdomain Discovery | What else exists? | Subfinder / Amass | Subdomains & related hosts |
| 4. HTTP Probing | What is live? | httpx | Live URLs & status codes |
| 5. Tech Detection | What runs on it? | WhatWeb | CMS, framework, server |
| 6. Vuln Scanning | What is weak? | Nmap / Nuclei | Ports, services, findings |
Yes. The whois command-line client is free and open source, and querying public WHOIS/RDAP servers costs nothing. Only large-scale commercial bulk APIs and historical WHOIS archives typically charge.
Yes. Querying publicly available registration data is legal in virtually all jurisdictions. What is regulated is how you use the results — harvesting personal contacts for spam or harassment violates GDPR, CAN-SPAM, and similar laws.
Sometimes. If the registrant did not enable privacy protection, WHOIS shows their name and contact details. Since GDPR, most personal registrations are redacted, so you often see a privacy proxy instead of the real owner.
RDAP (Registration Data Access Protocol) is the ICANN-mandated successor. It returns structured JSON over HTTPS and supports tiered access, but the classic whois protocol on port 43 is still widely supported.
Run 'whois example.com | grep -i expir' to extract the Registry Expiry Date field. For a quick visual check, use the Domain Age Checker tool.
Information Gathering
DNS query tool for detailed record lookups, zone transfers, and DNS troubleshooting.
Information Gathering
DNS enumeration tool that gathers records, attempts zone transfers, and brute-forces subdomains for a target domain.
Information Gathering
Passive subdomain discovery tool that finds subdomains using multiple public data sources.
Information Gathering
In-depth attack surface mapping tool that correlates WHOIS, ASN, and DNS data to map an organization's full footprint.
Information Gathering
OSINT tool that gathers emails, subdomains, hosts, and names from public sources for a target domain.
Information Gathering
Web fingerprinting tool that identifies CMS platforms, frameworks, and server software on live hosts.
Information Gathering
Network scanner for port discovery, service detection, and OS fingerprinting on infrastructure identified through WHOIS.
WHOIS output displays the registrar responsible for the domain, the registrant and administrative contact details, creation and expiration dates, updated timestamps, authoritative name servers, and domain status codes. Privacy-protected domains show proxy information instead of real owner data. IP WHOIS data reveals the Network Range, Organization, CIDR block, and Country associated with the address.
This tool is designed for authorized security testing, educational purposes, and legitimate network administration only. Unauthorized access to computer systems is illegal.