Have you been looking for a better way to model your network infrastructure? Check out what we're doing with NetBox! Open source and widely extensible, NetBox has enabled thousands of organizations to automate their networks like never before possible.


By stretch | Friday, March 11, 2011 at 4:42 a.m. UTC

WHOIS, pronounced who is, is a simple protocol which can be used to identify the owner of a domain name or IP prefix. Similar to FTP and SMTP, WHOIS is a character-oriented protocol which can be used by hand over a Telnet connection. However, it is more practical to use a purpose-built WHOIS command line or web-based client. Most Linux and BSD systems come with a WHOIS client pre-installed, and free WHOIS clients are available for other platforms.

To get a sense for how simple the protocol is, let's look at an example using Telnet. We'll telnet to whois.crsnic.net (a well-known WHOIS server) on port 43.

$ telnet whois.crsnic.net 43
Connected to whois.crsnic.net.
Escape character is '^]'.

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.

   Domain Name: CISCO.COM
   Whois Server: whois.networksolutions.com
   Referral URL: http://www.networksolutions.com
   Name Server: NS1.CISCO.COM
   Name Server: NS2.CISCO.COM
   Status: ok
   Updated Date: 19-apr-2010
   Creation Date: 14-may-1987
   Expiration Date: 15-may-2011

>>> Last update of whois database: Thu, 10 Mar 2011 22:01:40 UTC <<<

That's it; we type the domain, and the server terminates the connection after providing its response. The output above tells us where to find the appropriate WHOIS server for the .com top-level domain: whois.networksolutions.com. This is referred to as a thin WHOIS model; other TLDs, most notably .org, operate a thick model wherein all domain information is maintained in a single central database.

Next, we telnet to whois.networksolutions.com and repeat the query.

$ telnet whois.networksolutions.com 43
Connected to whois.networksolutions.com.
Escape character is '^]'.
NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS
database through the use of high-volume, automated, electronic processes. The

Cisco Technology, Inc.
   170 W. Tasman Drive
   San Jose, CA 95134

   Domain Name: CISCO.COM

   Administrative Contact:
      InfoSec       MBITtransferadmin@melbourneitdbs.com
      170 West Tasman Drive
      San Jose, CA 95134
      408-527-3842 fax: 408-526-4575

   Technical Contact:
      Network Services      dns-info@CISCO.COM
      170 W. Tasman Drive
      San Jose, CA 95134
      408-527-9223 fax: 408-526-7373

   Record expires on 15-May-2011.
   Record created on 14-May-1987.
   Database last updated on 10-Mar-2011 17:04:16 EST.

   Domain servers in listed order:


Dedicated WHOIS clients automate this process, automatically querying additional WHOIS servers as needed to find the desired record. The two queries above could be accomplished with the simple command whois cisco.com. WHOIS clients also come with well-known WHOIS servers compiled in, saving the user the trouble of looking up the appropriate server for a domain.

WHOIS can also be used to look up IP prefix information. These records are held not by domain registrars but by the five regional Internet registries (RIRs).

$ nslookup packetlife.net

Non-authoritative answer:
Name:   packetlife.net

$ whois
# Query terms are ambiguous.  The query is assumed to be:
#     "n"
# Use "?" to get help.

# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=

Slicehost RSPC-1246472891078100 (NET-174-143-212-0-1) -
Rackspace Hosting RSCP-NET-4 (NET-174-143-0-0-1) -

Here we see two records which match our query: Slicehost ( and Rackspace Hosting ( This indicates that Rackspace allocated a portion of its address space to Slicehost, which it recently acquired. (This is actually a bit misleading: packetlife.net is in fact hosted by Rackspace.)

To get more detail about these entries, we could reissue the WHOIS query with a plus sign prepended to the IP address; this instructs the ARIN WHOIS server to respond with detailed information about both records. (Note that some whois clients handle such requests better than others.) Alternatively, we could also try ARIN's web-based WHOIS interface mentioned in the reply.

Posted in Tips and Tricks

Support PacketLife by buying stuff you don't need!


March 11, 2011 at 5:53 a.m. UTC

which is d best one for windows


Jens Link
March 11, 2011 at 8:21 a.m. UTC

you can also lookup AS numbers using whois

jens@oban:~$ whois as109
ASNumber:       109
ASHandle:       AS109
RegDate:        1987-05-06
Updated:        1997-05-20    

March 11, 2011 at 6:57 p.m. UTC

The smartest WHOIS server out there in my opinion is geektools which has been around for >10 years. Whether IP address or domain name or AS number, geektools just works and gets around annoying registrar query limits too.

whois -h whois.geektools.com

Also worth noting is our whois.pwhois.org if you mainly want routing related info for an IP address.

March 24, 2011 at 6:44 a.m. UTC

I really like Packet Life,just aswow gold

Comments have closed for this article due to its age.