最近では、WHOIS コマンドを使用しても有用な情報は返されません。私は通常、データを取得するために Godaddy、Dnsstuff、またはその他のサービスに行かなければなりません。その理由は主にスパムによるものだと理解しています。
他のサービスがこのデータをどのように取得するのか疑問に思っていました。異なるタイプの WHOIS コマンドを使用していますか?
最近では、WHOIS コマンドを使用しても有用な情報は返されません。私は通常、データを取得するために Godaddy、Dnsstuff、またはその他のサービスに行かなければなりません。その理由は主にスパムによるものだと理解しています。
他のサービスがこのデータをどのように取得するのか疑問に思っていました。異なるタイプの WHOIS コマンドを使用していますか?
whois
Network Solutions がドメインを登録する唯一の場所ではなくなったとき、Bare-nakedは完全なレコードを返さなくなりました。今では、DNS のように機能します。DNS では、信頼できる情報を検索する場所が提供され、必要に応じてそこに移動する必要があります。
ウィット:
% 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...
他のサービスは、ドメインを登録し、ドメイン登録者から情報を取得します。
debian/ubuntu whois ライブラリを使用していると仮定すると、質問に対する短い答えは、使用することです
$ whois -h whois.crsnic.net "domain google.com"
これが長い答えです。
.COM TLD はThin WHOISです。WHOIS クエリを実行すると、WHOIS ツールは最初に WHOIS クエリを Verisign (ホスト名 whois.crsnic.net) に送信し、応答から参照を抽出します。
デフォルトでは、ドメイン example.com から Verisign にクエリを実行すると、Whois はドメイン名、レジストラ名、およびネームサーバーを含むいくつかの異なるオブジェクトで文字列「example.com」の非常に広範な検索を実行します。
Verisign のドキュメントで説明されているように、キーワードを指定してクエリを絞り込むことができます。 http://registrar.verisign-grs.com/whois/iframe/help.html?ppath=www.verisigninc.com/products-and-services/domain-name-services/whois&
上記のコマンドは、私が説明したことを正確に実行します。google.com の代わりに、完全なクエリ "domain google.com" を Verisign に送信します。Whois はクエリからクエリするホスト名を推測しようとするため、-h フラグを明示的に渡す必要がありますが、クエリ「ドメイン google.com」を有効なドメインとして認識しないため失敗します。
これがコマンドの結果です。
$ 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.