Redhat / CentOS: install whois

Do you have this problem

[root@server~]# whois  hacktopia.net
-bash: whois: command not found

We can fix that problem

yum -y install jwhois
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.trouble-free.net
* epel: mirror.metrocast.net
* extras: mirrors.seas.harvard.edu
* updates: mirror.atlanticmetro.net
Setting up Install Process
Resolving Dependencies
->Running transaction check
->Package jwhois.i686 0:4.0-19.el6 will be installed
->Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================
Package                       Arch                        Version                              Repository                   Size
==================================================================================================================================
Installing:
jwhois                        i686                        4.0-19.el6                           base                        103 k

Transaction Summary
==================================================================================================================================
Install       1 Package(s)

Total download size: 103 k
Installed size: 286 k
Downloading Packages:
jwhois-4.0-19.el6.i686.rpm                                                                                 | 103 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : jwhois-4.0-19.el6.i686                                                                                         1/1
Verifying  : jwhois-4.0-19.el6.i686                                                                                         1/1

Installed:
jwhois.i686 0:4.0-19.el6

Complete!
[root@hacktopia~]# whois hacktopia.net
[Querying whois.verisign-grs.com]
[Redirected to whois.enom.com]
[Querying whois.enom.com]
[whois.enom.com]
=-=-=-=

Registration Service Provided By: Namecheap.com
Contact: support@namecheap.com
Visit: http://namecheap.com

Domain name: hacktopia.net

Registrant Contact:
WhoisGuard
WhoisGuard Protected ()

Fax:
11400 W. Olympic Blvd. Suite 200
Los Angeles, CA 90064
US

Administrative Contact:
WhoisGuard
WhoisGuard Protected (af03ae4315af4587b4106994054b4881.protect@whoisguard.com)
+1.6613102107
Fax: +1.6613102107
11400 W. Olympic Blvd. Suite 200
Los Angeles, CA 90064
US

Technical Contact:
WhoisGuard
WhoisGuard Protected (af03ae4315af4587b4106994054b4881.protect@whoisguard.com)
+1.6613102107
Fax: +1.6613102107
11400 W. Olympic Blvd. Suite 200
Los Angeles, CA 90064
US

Status: Locked

Name Servers:
NS1.DREAMHOST.COM
NS2.DREAMHOST.COM
NS3.DREAMHOST.COM

Creation date: 16 Dec 2005 00:11:00
Expiration date: 16 Dec 2014 00:11:00

=-=-=-=
The data in this whois database is provided to you for information
purposes only, that is, to assist you in obtaining information about or
related to a domain name registration record. We make this information
available as is," and do not guarantee its accuracy. By submitting a
whois query, you agree that you will use this data only for lawful
purposes and that, under no circumstances will you use this data to: (1)
enable high volume, automated, electronic processes that stress or load
this whois database system providing you this information; or (2) allow,
enable, or otherwise support the transmission of mass unsolicited,
commercial advertising or solicitations via direct mail, electronic
mail, or by telephone. The compilation, repackaging, dissemination or
other use of this data is expressly prohibited without prior written
consent from us.

We reserve the right to modify these terms at any time. By submitting
this query, you agree to abide by these terms.
Version 6.3 4/3/2002

Great! it works now.

You can also find out who owns certain IP address blocks like so.

[root@hacktopia~]# dig hacktopia.net

; <<>DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.3 <<>hacktopia.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2580
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 0

;; QUESTION SECTION:
;hacktopia.net.                 IN      A

;; ANSWER SECTION:
hacktopia.net.          14400   IN      A       208.113.134.120

;; AUTHORITY SECTION:
hacktopia.net.          172443  IN      NS      ns2.dreamhost.com.
hacktopia.net.          172443  IN      NS      ns3.dreamhost.com.
hacktopia.net.          172443  IN      NS      ns1.dreamhost.com.

;; Query time: 94 msec
;; SERVER: 192.168.1.1#53(192.168.1.1)
;; WHEN: Tue Oct  2 13:38:04 2012
;; MSG SIZE  rcvd: 114

[root@hacktopia~]# whois 208.113.134.120
[Querying whois.arin.net]
[whois.arin.net]
#
# Query terms are ambiguous.  The query is assumed to be:
#     "&#8220;"n 208.113.134.120&#8243;
#
# Use "&#8220;"?&#8221; to get help.
#

#
# The following results may also be obtained via:
# http://whois.arin.net/rest/nets;q=208.113.134.120?showDetails=true&showARIN=false&ext=netref2
#

NetRange:       208.113.128.0 -> 208.113.255.255
CIDR:           208.113.128.0/17
OriginAS:
NetName:        DREAMHOST-BLK6
NetHandle:      NET-208-113-128-0-1
Parent:         NET-208-0-0-0-0
NetType:        Direct Allocation
RegDate:        2006-04-12
Updated:        2012-03-02
Ref:            http://whois.arin.net/rest/net/NET-208-113-128-0-1

OrgName:        New Dream Network, LLC
OrgId:          NDN
Address:        417 Associated Rd.
Address:        PMB #257
City:           Brea
StateProv:      CA
PostalCode:     92821
Country:        US
RegDate:        2001-04-17
Updated:        2012-09-27
Ref:            http://whois.arin.net/rest/org/NDN

OrgNOCHandle: ZD69-ARIN
OrgNOCName:   Network Operations
OrgNOCPhone:  +1-714-706-4182
OrgNOCEmail:  netops@dreamhost.com
OrgNOCRef:    http://whois.arin.net/rest/poc/ZD69-ARIN

OrgTechHandle: MCRAE6-ARIN
OrgTechName:   McRae, Kenneth
OrgTechPhone:  +1-424-646-4949
OrgTechEmail:  kenneth.mcrae@dreamhost.com
OrgTechRef:    http://whois.arin.net/rest/poc/MCRAE6-ARIN

OrgAbuseHandle: DAT5-ARIN
OrgAbuseName:   DreamHost Abuse Team
OrgAbusePhone:  +1-714-706-4182
OrgAbuseEmail:  abuse@dreamhost.com
OrgAbuseRef:    http://whois.arin.net/rest/poc/DAT5-ARIN

#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#