Instalando um cliente de whois no seu Redhat / CentOS

Sei que muita gente vai achar chatinho algumas dicas que aparecem por aqui mas achei interessante voltar com as famosas dicas rápidas para operação do Linux.

Tentou usar o whois no Fedora / RHEL / Redhat / CentOS / Scientific Linux e ele não deu as caras ?

# whois 108.162.222.173
-bash: whois: command not found

Não se desespere. Estas versões do Linux tem um cliente muito bom para este fim , o jwhois ( linha de comando ) e pode ser instalado facilmente utilizando o yum.

# yum -y install jwhois

Saída do comando :

# yum install jwhois
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.es.its.nyu.edu
* epel: epel.mirror.constant.com
* extras: centos.someimage.com
* rpmforge: repoforge.mirror.constant.com
* updates: mirrors.advancedhosters.com
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package jwhois.x86_64 0:4.0-19.el6 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

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

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

Total download size: 104 k
Installed size: 294 k
Is this ok [y/N]: y
Downloading Packages:
jwhois-4.0-19.el6.x86_64.rpm | 104 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : jwhois-4.0-19.el6.x86_64 1/1
Verifying : jwhois-4.0-19.el6.x86_64 1/1

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

Com o comando já instalado agora é só usá-lo do seguinte modo :

# whois ataliba.eti.br

# whois 8.8.8.8

Saídas de um comando exemplo:

$ whois ataliba.net
[Querying whois.verisign-grs.com]
[Redirected to whois.dreamhost.com]
[Querying whois.dreamhost.com]
[whois.dreamhost.com]

Domain Name: ATALIBA.NET
Registry Domain ID: NA
Registrar WHOIS Server: whois.dreamhost.com
Registrar URL: www.dreamhost.com
Updated Date: 2013-12-13 21:51:33Z
Creation Date: 2006-07-21 04:10:36Z
Registrar Registration Expiration Date: 2014-07-21 11:10:36Z
Registrar: DREAMHOST
Registrar IANA ID: 431
Registrar Abuse Contact Email: [email protected]
Registrar Abuse Contact Phone: +1.2132719359
Domain Status: ok
Registry Registrant ID:
Registrant Name: PRIVATE REGISTRANT
Registrant Organization: A HAPPY DREAMHOST CUSTOMER
Registrant Street: 417 ASSOCIATED RD #324
Registrant Street: C/O ATALIBA.NET
Registrant City: BREA
Registrant State/Province: CA
Registrant Postal Code: 92821
Registrant Country: US
Registrant Phone: +1.7147064182
Registrant Phone Ext:
Registrant Fax:
Registrant Fax Ext:
Registrant Email: [email protected]
Registry Admin ID:
Admin Name: PRIVATE REGISTRANT
Admin Organization: A HAPPY DREAMHOST CUSTOMER
Admin Street: 417 ASSOCIATED RD #324
Admin Street: C/O ATALIBA.NET
Admin City: BREA
Admin State/Province: CA
Admin Postal Code: 92821
Admin Country: US
Admin Phone: +1.7147064182
Admin Phone Ext:
Admin Fax:
Admin Fax Ext:
Admin Email: [email protected]
Registry Tech ID:
Tech Name: PRIVATE REGISTRANT
Tech Organization: A HAPPY DREAMHOST CUSTOMER
Tech Street: 417 ASSOCIATED RD #324
Tech Street: C/O ATALIBA.NET
Tech City: BREA
Tech State/Province: CA
Tech Postal Code: 92821
Tech Country: US
Tech Phone: +1.7147064182
Tech Phone Ext:
Tech Fax:
Tech Fax Ext:
Tech Email: [email protected]
Name Server: NS1.DREAMHOST.COM
Name Server: NS2.DREAMHOST.COM
Name Server: NS3.DREAMHOST.COM
DNSSEC: unSigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
Last update of WHOIS database: 2013-12-13 21:51:33Z
DreamHost whois server terms of service: http://whois.dreamhost.com/

DreamHost is a global Web hosting and cloud services provider with over 375,000 customers and 1.2 million blogs, websites and apps hosted. The company offers a wide spectrum of Web hosting and cloud services including Shared Hosting, Virtual Private Servers (VPS), Dedicated Server Hosting, Domain Name Registration, the cloud storage service, DreamObjects, and the cloud computing service DreamCompute. Please visit http://DreamHost.com for more information.

E pronto, agora você pode usar o whois direto em linha de comando, sem precisar de ficar procurando na internet um whois qualquer 🙂

Ganhou eficiência 🙂