Name

whois — stdin  stdout  - file  -- opt  --help  --version

Synopsis

whois [options] domain_name

The whois command looks up the registration of an Internet domain:

whois itunes.com
Domain Name: ITUNES.COM
Name Server: NSERVER.APPLE.COM
Updated Date: 27-apr-2010
Creation Date: 11-aug-1998
Expiration Date: 10-aug-2019
...

plus a few screens full of legal disclaimers from the registrar.

Useful options

-h registrar

Perform the lookup at the given registrar’s server. For example, whois -h whois.networksolutions.com yahoo.com.

-p port

Query the given the TCP port instead of the default, 43 (the whois service).

Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.