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.
| Command | Purpose |
|---|---|
whois example.com | Query domain registration data. |
whois 192.0.2.1 | Query allocation data for a TEST-NET-1 address. |
whois -I example.com | Query IANA and follow its referral. |
whois -h whois.iana.org example.com | Query IANA explicitly. |
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
DNSenum is a multithreaded Perl script for DNS enumeration that discovers DNS records, attempts zone transfers, brute-forces subdomains, and performs reverse lookups. It is a foundational reconnaissance tool in Kali Linux for mapping a target domain's DNS infrastructure.
Information Gathering
Learn how to use Subfinder in this beginner tutorial, from installing ProjectDiscovery's passive subdomain tool to running and reading your first authorised scan. Add API keys for wider coverage, save clean results, and chain Subfinder into httpx to validate live web hosts before further testing.
Information Gathering
OWASP Amass is the industry-standard in-depth network mapping and attack surface discovery tool. It uses active and passive techniques, scraping 20+ public data feeds, DNS enumeration, and certificate transparency logs to discover subdomains, IP addresses, and ASN data — making it essential for penetration testing, bug bounty hunting, and enterprise security assessments.
Information Gathering
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s).
Information Gathering
Learn how to use theHarvester in Kali Linux: gather emails, subdomains, employee names, open ports, and banners from public sources with a step-by-step first scan, API keys, and worked examples for authorized OSINT recon.
Information Gathering
Learn how to use WhatWeb, the website fingerprinting tool that answers 'What is that website?' by detecting content management systems (CMS), blogging platforms, analytics packages, JavaScript libraries, web servers, embedded devices, and over 1800 other web technologies using its plugin architecture.
Learn how to use WHOIS lookups for domain registration intelligence, including querying registrar data, analyzing historical records, and privacy protection.
OSINT · IntermediateLearn a complete reconnaissance workflow combining OSINT, DNS enumeration, subdomain discovery, and active scanning for comprehensive target profiling.
OSINT · BeginnerLearn how to use whois in Kali Linux: look up any domain, IP or AS number, read the record, and spot red flags — with a worked example and cheat sheet.
OSINT · AdvancedLearn how GDPR and domain privacy protection affect WHOIS lookups, why data is redacted, and techniques for working with limited registration data.
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.