Whois Lookup Guide
Whois Basic Concepts
Whois is a protocol and database system for querying domain registration information. Through Whois lookups, you can obtain information about a domain's registrant, registration date, expiration date, domain servers, registrar, and more. Whois data is managed by ICANN (Internet Corporation for Assigned Names and Numbers), with each domain registrar responsible for maintaining Whois data for domains under their management.
Primary uses of Whois lookups include: domain availability checking (querying before registering a new domain), domain ownership confirmation (commercial negotiations or legal disputes), cybersecurity investigations (tracking malicious domains), and brand protection (monitoring brand domain squatting). Note that with the implementation of privacy regulations like GDPR, much Whois data has been hidden.
Lookup Methods and Result Interpretation
# Command-line Whois query
# Query domain information
whois example.com
# Query IP address information
whois 93.184.216.34
# Use specific Whois server
whois -h whois.verisign-grs.com example.com
# Result interpretation example:
# Domain Name: example.com
# Registry Domain ID: 2336799_DOMAIN_COM-VRSN
# Registrar WHOIS Server: whois.iana.org
# Updated Date: 2024-01-01T00:00:00Z
# Creation Date: 1995-08-14T04:00:00Z
# Registry Expiry Date: 2025-08-13T04:00:00Z
# Name Server: a.iana-servers.net
# Using PowerShell query (Windows)
Resolve-DnsName -Type ANY example.com
Programming Whois Query
// Python using python-whois library
// import whois
// def query_whois(domain):
// w = whois.whois(domain)
// return {
// 'domain_name': w.domain_name,
// 'registrar': w.registrar,
// 'creation_date': w.creation_date,
// 'expiration_date': w.expiration_date,
// 'name_servers': w.name_servers
// }
// JavaScript using whois package
const whois = require('whois');
whois.lookup('example.com', (err, data) => {
if (err) {
console.error(err);
return;
}
console.log(data);
});
Privacy Protection and Recommended Tools
With the implementation of privacy regulations, many registrars offer Whois privacy protection services. After GDPR implementation, Whois data for EU domains is partially hidden. Obtaining hidden information requires legitimate channels through the registrar or using commercial Whois database services.
who.is is an online Whois lookup tool. DomainTools is a professional domain intelligence service. ICANN Whois is the official Whois lookup service. python-whois is a Python Whois lookup library.