Whois commandez ne pas renvoyer des informations utiles?
-
14-11-2019 - |
Question
De nos jours, chaque fois que vous utilisez la commande whois ne renvoie aucune information utilement. Je dois généralement aller à GoDaddy, DnsStuff ou à d'autres services pour obtenir les données. Je comprends que la raison est principalement due au spam.
Je me demandais juste comment les autres services obtiennent ces données. Utilisent-ils différents types de commandes whois?
La solution
Nu whois
Arrêt de retour des enregistrements complets lorsque les solutions réseau n'étaient plus le seul endroit pour enregistrer les domaines. Maintenant, il fonctionne plus comme DNS, où quelque chose vous donne un endroit pour rechercher des informations faisant autorité, et vous devez aller y chercher si vous le souhaitez.
En être témoin:
% whois stackoverflow.com
[Querying whois.verisign-grs.com]
[whois.verisign-grs.com]
...
Domain Name: STACKOVERFLOW.COM
Registrar: GODADDY.COM, INC.
Whois Server: whois.godaddy.com
...
% whois stackoverflow.com@whois.godaddy.com
[Querying whois.godaddy.com]
[whois.godaddy.com]
...
Registrant:
Stack Overflow Internet Services, Inc.
1010 Disk Drive
...etc...
Les autres services sont dans le domaine de l'enregistrement des domaines et d'obtenir leurs informations de leurs inscrits de domaine.
Autres conseils
Voici La réponse que j'ai publiée sur ServerFault.
La réponse courte à votre question, en supposant que vous utilisez la bibliothèque Debian / Ubuntu Whois, est d'utiliser
$ whois -h whois.crsnic.net "domain google.com"
Voici la longue réponse.
Le .com tld est un Whois minces. Lorsque vous peignez une requête WHOIS, l'outil WHOIS envoie d'abord une requête WHOIS à VeriSign (hostname whois.crsnic.net) et extraire la référence de la réponse.
Par défaut, lorsque vous interrogez VeriSign à partir du domaine Example.com, WHOIS effectue une recherche très large de la chaîne "Exemple.com" dans plusieurs objets différents, y compris le nom de domaine, le nom du registraire et les serveurs de noms.
Vous pouvez affiner la requête en spécifiant un mot-clé, comme décrit dans la documentation VeriSign.http://registrar.verisign-gs.com/whois/iframe/help.html?ppath=www.verisign.com/products-and-services/domain-name-services/whois&
La commande ci-dessus fait exactement ce que j'ai expliqué. Au lieu de Google.com, il envoie à Verisign la requête complète "Domain Google.com". Vous devez passer explicitement le drapeau -H parce que Whis tente de deviner le nom d'hôte pour interroger de la requête, mais il échouera car il ne reconnaîtra pas la requête "Domain Google.com" comme domaine valide.
Voici le résultat de la commande.
$ whois -h whois.crsnic.net "domain google.com"
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: GOOGLE.COM
Registrar: MARKMONITOR INC.
Whois Server: whois.markmonitor.com
Referral URL: http://www.markmonitor.com
Name Server: NS1.GOOGLE.COM
Name Server: NS2.GOOGLE.COM
Name Server: NS3.GOOGLE.COM
Name Server: NS4.GOOGLE.COM
Status: clientDeleteProhibited
Status: clientTransferProhibited
Status: clientUpdateProhibited
Status: serverDeleteProhibited
Status: serverTransferProhibited
Status: serverUpdateProhibited
Updated Date: 15-sep-2010
Creation Date: 15-sep-1997
Expiration Date: 14-sep-2011
>>> Last update of whois database: Wed, 30 Mar 2011 08:50:16 UTC <<<
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.
Bien que la nouvelle politique «épaisse» de WHOIS exige désormais que tous les nouveaux registres GTLD exploitent un registre épais, actuellement quelques registres existants (tels que .com et .NET) ne sont pas encore passés à des WHOIS «épais» et exploitent toujours un registre mince. - https://whois.icann.org/en/primer
Pour .com et .net, utilisez le enregistrementles résultats minces d'une simple commande whois pour trouver le greffierserveur whois.
Par exemple,
# 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: abusecomplaints@markmonitor.com
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
DNSSEC: unsigned
URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
>>> Last update of whois database: 2017-09-12T18:51:08Z <<<
For more information on Whois status codes, please visit https://icann.org/epp
...
Puis interroge le greffier pour des résultats épais.
Par exemple,
# whois google.com -h whois.markmonitor.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: 2017-09-07T08:50:36-0700
Creation Date: 1997-09-15T00:00:00-0700
Registrar Registration Expiration Date: 2020-09-13T21:00:00-0700
Registrar: MarkMonitor, Inc.
Registrar IANA ID: 292
Registrar Abuse Contact Email: abusecomplaints@markmonitor.com
Registrar Abuse Contact Phone: +1.2083895740
Domain Status: clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)
Domain Status: clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)
Domain Status: clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)
Domain Status: serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)
Domain Status: serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)
Domain Status: serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)
Registry Registrant ID:
Registrant Name: DNS Admin
Registrant Organization: Google Inc.
Registrant Street: 1600 Amphitheatre Parkway,
Registrant City: Mountain View
Registrant State/Province: CA
...
Il me semble (même si je n'ai pas envie de déterminer l'historique du commandement whois maintenant) qu'à un moment donné, la commande whois a été modifiée pour ne pas interroger automatiquement l'épaisseur greffier Résultats de la mince initiale enregistrement informations.