Kuinka saada verkkotunnus- ja IP-osoitetiedot WHOIS-komennolla


WHOIS on TCP-pohjainen kysely- ja vastausprotokolla, jota käytetään yleisesti tietopalvelujen tarjoamiseen Internetin käyttäjille. Se palauttaa tietoja rekisteröidyistä verkkotunnuksista, IP-osoitelohkosta, nimipalvelimista ja paljon laajemmasta valikoimasta tietopalveluja.

Linuxissa whois-komentoriviapuohjelma on WHOIS-asiakas, joka on tarkoitettu kommunikoimaan WHOIS-palvelimen (tai tietokantaisäntäkoneen) kanssa, joka kuuntelee pyyntöjä tunnetulla porttinumerolla 43, joka tallentaa ja toimittaa tietokantasisältöä ihmisen luettavassa muodossa.

Lue myös: 10 Linux Dig (Domain Information Groper) -komentoa DNS-kyselyyn

whois-komentoriviohjelmaa ei ole esiasennettu moniin Linux-jakeluihin. Asenna se suorittamalla alla oleva sopiva komento jakelullesi.

yum install whois		#RHEL/CentOS
dnf install whois		#Fedora 22+
sudo apt install whois	#Debian/Ubuntu

Kuinka löytää IP-osoitetiedot

Saadaksesi tiedot tietystä IP-osoitteesta anna komento alla olevan esimerkin mukaisesti.

whois 216.58.206.46

#
ARIN WHOIS data and services are subject to the Terms of Use
available at: https://www.arin.net/whois_tou.html
#
If you see inaccuracies in the results, please report at
https://www.arin.net/public/whoisinaccuracy/index.xhtml
#


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

NetRange:       216.58.192.0 - 216.58.223.255
CIDR:           216.58.192.0/19
NetName:        GOOGLE
NetHandle:      NET-216-58-192-0-1
Parent:         NET216 (NET-216-0-0-0-0)
NetType:        Direct Allocation
OriginAS:       AS15169
Organization:   Google LLC (GOGL)
RegDate:        2012-01-27
Updated:        2012-01-27
Ref:            https://whois.arin.net/rest/net/NET-216-58-192-0-1



OrgName:        Google LLC
OrgId:          GOGL
Address:        1600 Amphitheatre Parkway
City:           Mountain View
StateProv:      CA
PostalCode:     94043
Country:        US
RegDate:        2000-03-30
Updated:        2017-12-21
Ref:            https://whois.arin.net/rest/org/GOGL
...

Kuinka löytää verkkotunnuksen tiedot

Saat tiedot rekisteröidystä toimialueesta antamalla seuraavan komennon toimialueen nimellä. Se hakee verkkotunnuksen tiedot, kuten saatavuuden, omistajuuden, luomisen, vanhenemistiedot, nimipalvelimet jne.

whois google.com

Domain Name: GOOGLE.COM
   Registry Domain ID: 2138514_DOMAIN_COM-VRSN
   Registrar WHOIS Server: whois.markmonitor.com
   Registrar URL: http://www.markmonitor.com
   Updated Date: 2011-07-20T16:55:31Z
   Creation Date: 1997-09-15T04:00:00Z
   Registry Expiry Date: 2020-09-14T04:00:00Z
   Registrar: MarkMonitor Inc.
   Registrar IANA ID: 292
   Registrar Abuse Contact Email: [email 
   Registrar Abuse Contact Phone: +1.2083895740
   Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
   Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
   Domain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited
   Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited
   Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
   Name Server: NS1.GOOGLE.COM
   Name Server: NS2.GOOGLE.COM
   Name Server: NS3.GOOGLE.COM
   Name Server: NS4.GOOGLE.COM
....

Tietojen muotoilu vaihtelee käytetyn WHOIS-palvelimen mukaan. Lisäksi yksi WHOIS:n haittapuoli on tietojen täydellisen pääsyn puute, joten tutustu näihin hyödyllisiin oppaisiin DNS-tietojen kyselyyn Linuxissa:

  1. Hyödyllisiä "isäntä"-komento-esimerkkejä DNS-hakujen kyselyyn
  2. 8 Linux Nslookup -komentoa DNS:n (Domain Name Server) -vianmääritystä varten

Jos sinulla on kysyttävää tai tietoa artikkelista, jonka haluat jakaa kanssamme, käytä alla olevaa kommenttilomaketta.