Command library / whois
whois
Look up who registered a domain or owns an IP block
Queries the public WHOIS registry for a domain (registrar, owner, creation/expiry dates) or an IP address (which organisation the block was allocated to). -h lets you ask a specific WHOIS server instead of the default one.
Practice whoisUsage
whois [-h server] target
Options and flags
targetthe domain name or IP address to look up
-h, --hostSERVERquery this specific WHOIS server instead of the default one
Examples
whois example.comRegistrar, owner and expiry date for example.com.
whois 8.8.8.8Which organisation this IP address block was allocated to.
whois -h whois.verisign-grs.com example.comAsk that one specific registry server directly, instead of letting whois pick one for you.
Common mistakes
whois whois example.com
whois always needs something to look up — a bare domain or IP address as its argument.