WHOIS is a TCP-based query and response protocol used for querying databases that store the registered users or assignees of an Internet resource, such as a domain name, an IP address block, or an autonomous system. Operating over port 43, it connects clients to authoritative records maintained by domain name registrars and Regional Internet Registries (RIRs). Administrators, engineers, and security analysts use it to inspect ownership details, registration and expiration timelines, and technical contacts.
How it works
When a user or script initiates a lookup, the client opens a TCP connection to a WHOIS server on port 43 and sends a plain-text string containing the target domain or IP address. Because registration data is distributed, lookups often follow a thin-to-thick referral model: a top-level registry server returns basic metadata alongside a Registrar WHOIS Server pointer, and the client queries that secondary server for the full record.
The server replies with human-readable key-value lines detailing authoritative nameservers, creation and expiration timestamps, and Extensible Provisioning Protocol (EPP) status codes such as clientTransferProhibited or serverHold. While traditional WHOIS relies on unstructured text that varies across registries, the newer Registration Data Access Protocol (RDAP) is gradually replacing it by serving standardized, machine-readable JSON over HTTPS.
Example
On Linux and macOS systems, you can query a domain directly from the terminal using the standard whois utility and filter for the most relevant operational fields:
whois example.com | grep -E "Registrar:|Expiry Date:|Name Server:|Domain Status:"
A typical truncated response looks like this:
Registrar: Example Registrar, Inc.
Registry Expiry Date: 2027-08-13T04:00:00Z
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Name Server: A.IANA-SERVERS.NET
Name Server: B.IANA-SERVERS.NET
What matters when choosing a server or hosting
- WHOIS privacy protection: Ensure your registrar or hosting provider includes free domain privacy redaction so personal phone numbers, physical addresses, and direct email addresses are not exposed to scrapers.
- IP reputation and clean allocation: When provisioning dedicated servers or VPS instances with static IPv4 addresses, run a WHOIS lookup on the assigned IP block to verify the RIR allocation and ensure the subnet is not associated with known spam operations.
- Outbound port 43 access: If your applications, monitoring tools, or security automation scripts perform automated domain verification, confirm that your hosting provider's network firewall does not block outbound TCP traffic on port 43.
- Registrar lock controls: Look for providers that enable EPP transfer locks by default and provide straightforward DNS and contact management without extra administrative fees.
Common mistakes
- Ignoring registrant contact verification emails: ICANN policies require accurate contact records. Failing to click the verification link after registering a domain or changing the registrant email can trigger a
clientHoldstatus, taking your website and email offline. - Writing brittle text parsers for automation: Because legacy WHOIS output lacks a universal schema, scripts that rely on rigid regular expressions often break across different country-code TLDs. Use RDAP endpoints whenever automated parsing is required.
- Confusing privacy redaction with invalid data: Modern data protection laws like GDPR cause most registries to mask personal fields with placeholders. Redacted output does not mean the record is missing; registries still hold the underlying data and require you to keep it accurate.
FAQ
Why is the domain owner's name hidden in WHOIS results?
Following data protection regulations such as GDPR, most registrars redact personal registrant details by default or replace them with a privacy proxy service. Law enforcement and accredited parties can still request access to the underlying records through formal disclosure processes.
What does a serverHold or clientHold status mean?
Both codes indicate that the domain is suspended and will not resolve in the public DNS. A clientHold is applied by your registrar—usually due to an expired payment or unverified contact email—while a serverHold is imposed by the registry operator over policy or legal disputes.
How is RDAP different from traditional WHOIS?
RDAP delivers the same registration data over standard HTTP/HTTPS rather than port 43, returning structured JSON instead of raw text. It also supports standardized internationalization, encrypted connections, and tiered access permissions for sensitive fields.