Cara install whois di Linux

Untuk tahu siapa pemilik nama domain dan kapan expirednya maka kita akan menggunakan whois, bagi yang merasa repot buka – buka website untuk cek domain maka lebih praktis lagi kalau lewat command line Linux. Masalahnya ternyata tidak bisa dikatakan ini adalah paket aplikasi default, apalagi kalau instalasi Linuxnya manual kemungkinan muncul pesan error dibawah:

-bash: whois: command not found

Ini solusinya sebenarnya sangat mudah, tinggal install whois:

  • Debian/Ubuntu
    apt-get install whois
  • CentOS
    yum install whois

Setelah itu dipakai saja:

whois servernesia.com

Akan dibalas seperti berikut:

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: SERVERNESIA.COM
   Registrar: NAMESILO, LLC
   Sponsoring Registrar IANA ID: 1479
   Whois Server: whois.namesilo.com
   Referral URL: http://www.namesilo.com
   Name Server: NS1.SERVERNESIA.COM
   Name Server: NS2.SERVERNESIA.COM
   Name Server: NS3.SERVERNESIA.COM
   Name Server: NS4.SERVERNESIA.COM
   Name Server: NS5.SERVERNESIA.COM
   Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
   Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
   Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
   Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
   Updated Date: 02-feb-2017
   Creation Date: 31-jul-2015
   Expiration Date: 31-jul-2018

>>> Last update of whois database: Thu, 09 Mar 2017 23:08:31 GMT <<<

For more information on Whois status codes, please visit https://icann.org/epp

NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar.  Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.

The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.

Rasanya tidak ada kejutan untuk bagaimana mendapatkannya dan apa nama aplikasinya. Betul kan? Ternyata tidak juga berdasarkan pengalaman. Kadang nama paket aplikasi whois itu tidak ada, terutama di CentOS bisa muncul seperti ini:

No package whois available.
Nothing to do

Kalau ini tampaknya masalah versi CentOS atau repository yang terpasang.

5 Comments

Tinggalkan Balasan ke Chandra Batalkan balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *