Kuinka saada toimialue- ja IP-osoitetiedot WHOIS-komennolla


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

Linuxissa whois-komentorivi-apuohjelma on WHOIS-asiakas kommunikointiin WHOIS-palvelimen (tai tietokannan isännän) kanssa, joka kuuntelee pyyntöjä tunnetulta porttinumerolta 43, joka tallentaa ja toimittaa tietokannan sisällön ihmisen luettavassa muodossa.

whois-komentorivin apuohjelmaa ei ole esiasennettu moniin Linux-jakeluihin, asenna se jakeluasi vastaavan komennon avulla.

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

IP-osoitetietojen etsiminen

Saadaksesi tietoja 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ää verkkotunnustiedot

Saadaksesi tietoja rekisteröidystä verkkotunnuksesta, anna seuraava komento toimialueen nimellä. Se hakee verkkotunnustiedot, mukaan lukien saatavuus, omistajuus, luominen, vanhentumistiedot, 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 WHOIS-palvelun yksi haittapuoli on täydellisen pääsyn puute tietoihin, joten tutustu näihin hyödyllisiin ohjeisiin DNS-tietojen kyselyyn Linuxissa:

  1. Hyödyllisiä isäntäkomennon esimerkkejä DNS-hakujen kyselystä
  2. 8 Linux Nslookup -komentoa DNS: n (verkkotunnuspalvelin) vianmääritykseen

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