How to Do a WHOIS Lookup for Any Domain
WHOIS is a public registry protocol that stores information about every registered domain name. A WHOIS lookup tells you who registered a domain, which registrar they used, when the domain was created, and when it expires. For email security, it is a quick way to assess whether a sender's domain is legitimate or was recently created for spam or phishing.
How to run a WHOIS lookup
Use the Cleanbox WHOIS Lookup tool — enter any domain name or IP address and see the registration details instantly.
From the command line:
whois yourdomain.com
What WHOIS results tell you
| Field | What it means |
|---|---|
| Registrant | The person or organization that owns the domain. Often hidden behind privacy protection |
| Registrar | The company where the domain was purchased (GoDaddy, Namecheap, Cloudflare, etc.) |
| Creation date | When the domain was first registered. Very recent dates are a red flag for phishing domains |
| Expiration date | When the registration expires. Legitimate businesses typically register for multiple years |
| Updated date | When the registration was last modified |
| Name servers | The DNS servers hosting the domain's records. Can reveal hosting provider and infrastructure |
| Status codes | Flags like clientTransferProhibited (locked against unauthorized transfers) indicate a managed domain |
Using WHOIS for email security
Spotting phishing domains
Phishing emails often come from recently registered domains designed to impersonate legitimate brands. WHOIS reveals the domain age — a domain registered yesterday claiming to be your bank is almost certainly fraudulent.
Red flags in WHOIS data:
- Domain created within the last 30 days — New domains are disproportionately used for phishing and spam
- Registration for only 1 year — Spammers minimize cost by registering domains for the shortest possible term
- Registrant in a different country than the company the email claims to represent
- Privacy-protected registration on a domain claiming to be a large company — most large companies register domains under their corporate name
Investigating spam sources
When you receive persistent spam from a specific domain, WHOIS can reveal whether it is a dedicated spam operation (recently registered, cheap registrar, privacy-protected) or a compromised legitimate domain (old registration, established business). The response differs: report spam domains to their registrar for abuse; notify compromised domain owners so they can secure their account.
Verifying sender identity
If you receive an unexpected email from a business partner or vendor, check the sender's domain via WHOIS. Compare the registrant, creation date, and name servers against what you expect. A supplier email coming from a domain registered last week (instead of their established domain) is a business email compromise attempt.
WHOIS privacy protection
Many domain registrars offer WHOIS privacy (sometimes called “domain privacy” or “privacy protection”) that replaces the registrant's personal information with the registrar's proxy details. This is a legitimate privacy measure — individuals and small businesses use it to keep their personal address and phone number out of public databases.
Privacy protection does not mean the domain is suspicious. But combined with other red flags (new domain, cheap TLD, suspicious email content), it adds to the picture.
WHOIS for IP addresses
WHOIS also works for IP addresses. The WHOIS lookup tool accepts both domains and IPs. An IP WHOIS lookup reveals:
- The organization that owns the IP block (ISP, hosting provider, or company)
- The geographic region of the allocation
- Abuse contact information for reporting spam or attacks
Combine this with the IP lookup tool for geolocation and reverse DNS information.
Related tools
- WHOIS Lookup — Domain and IP registration details
- IP Lookup — Geolocation and reverse DNS for any IP
- NS Lookup — Query nameservers and DNS records
- MX Lookup — Find mail servers for any domain
- SPF Checker — Validate email sending authorization
For protecting your inbox from the threats WHOIS can reveal, Cleanbox filters every incoming email through reputation checks, authentication validation, and AI classification — catching phishing and spam before it reaches you.
Ready to take control of your inbox?
Start protecting your email with Cleanbox — free plan available, no credit card required.
Get started free