WHOIS

Protocols & Standards
The legacy protocol for querying domain registration information, returning unstructured text data about domain ownership and status.
← Back to Glossary

What is WHOIS?

WHOIS is the original protocol for querying domain name registration information, dating back to the early days of the internet. When you perform a WHOIS lookup, you receive a text-based response containing details about a domain's registration, including registrar information, creation dates, expiration dates, and historically, registrant contact information.

The History of WHOIS

WHOIS emerged in the 1980s when the internet was a much smaller place. Originally documented in RFC 812 (1982), it was designed to let system administrators identify who was responsible for network resources. The protocol operates on TCP port 43, accepting simple text queries and returning human-readable (but machine-unfriendly) responses.

Why WHOIS is Problematic for Developers

If you've built applications that parse WHOIS data, you've encountered its fundamental flaw: there is no standard format. Each registrar and registry formats their WHOIS output differently. Consider these real-world challenges:

Inconsistent Field Names

Varied Date Formats

2024-01-15T00:00:00Z

15-Jan-2024

January 15, 2024

15/01/2024

Unpredictable Structure

Some registrars include blank lines between sections, others don't. Some use colons as delimiters, others use tabs. This inconsistency means robust WHOIS parsing requires maintaining dozens of regex patterns and constantly updating them as registrars change their formats.

WHOIS Technical Details

A WHOIS query is simple at the protocol level:

1. Open a TCP connection to port 43 on the WHOIS server

2. Send the domain name followed by a newline

3. Read the response until the connection closes

echo "example.com" | nc whois.verisign-grs.com 43

The response is plain text with no standardized structure, requiring careful parsing.

Privacy Changes to WHOIS

The introduction of GDPR in 2018 fundamentally changed WHOIS data availability. Previously, WHOIS responses included:

Now, most registrars redact this personal information, showing only:

This privacy protection means WHOIS is less useful for contact lookup but still valuable for availability checking and technical domain information.

When to Use WHOIS vs RDAP

For new development, always prefer RDAP when available. RDAP provides the same information in a standardized JSON format that's trivial to parse. However, WHOIS remains necessary for:

Finding WHOIS Servers

Each TLD has designated WHOIS servers. For example:

The IANA maintains a root database at whois.iana.org that can direct you to the appropriate TLD WHOIS server.

The Future of WHOIS

ICANN has mandated RDAP adoption, and WHOIS is being phased out. While WHOIS servers will likely remain operational for years to come, new applications should be built on RDAP. DomScan uses RDAP exclusively for its domain availability checks, ensuring consistent, reliable results across all supported TLDs.

Put This Knowledge to Work

Use DomScan's API to check domain availability, health, and more.