web-dev-qa-db-ja.com

WHOISコマンドが有用な情報を返さないのですか?

WHOISコマンドを使用しても、有用な情報は返されません。私は通常、データを取得するためにGodaddy、Dnsstuff、またはその他のサービスにアクセスする必要があります。理由は主にスパムによるものだと理解しています。

他のサービスがこのデータをどのように取得するのかと思っていました。異なるタイプのWHOISコマンドを使用していますか?また、WHOISコマンドから生成されたデータの一部が単なるスパムであると混乱しています。 whois google.comを実行した例は、GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COMなどのスパムWebサイトを生成します。このデータはどこから来たのですか?

例:

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.

GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COM
GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET
GOOGLE.COM.UY
GOOGLE.COM.UA
GOOGLE.COM.TW
GOOGLE.COM.TR
GOOGLE.COM.SA
GOOGLE.COM.PE
GOOGLE.COM.MX
GOOGLE.COM.DO
GOOGLE.COM.CO
GOOGLE.COM.CN
GOOGLE.COM.BR
GOOGLE.COM.AU
GOOGLE.COM.AR
GOOGLE.COM.AFRICANBATS.ORG
GOOGLE.COM

To single out one record, look it up with "xxx", where xxx is one of the
of the records displayed above. If the records are the same, look them up
with "=xxx" to receive a full display for each record.

>>> Last update of whois database: Wed, 30 Mar 2011 03:07:59 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.
9
Max Thomson

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の代わりに、完全なクエリ「domaingoogle.com」をVerisignに送信します。 Whoisはクエリからクエリするホスト名を推測しようとするため、明示的に-hフラグを渡す必要がありますが、クエリ「domaingoogle.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.
10
Simone Carletti

domainレコードだけでなく、すべてのレコードタイプを要求しています。 whois helpから

デフォルトでは、WHOISは非常に広範な検索を実行し、すべてのレコードタイプで、ドメイン名、ネームサーバー名、ネームサーバーIPのクエリに一致するものを探します。アドレス、およびレジストラ名。キーワードを使用して検索を絞り込みます。

次のキーワードは、検索をデータベース内の特定のタイプのフィールドに制限します。domainドメインレコードを検索します。ドメイン名、レジストラ名、whoisサーバーとURL、ネームサーバー名とIPアドレス、および更新日を確認します。

2つの可能な修正があります:

1.ドメインオプションを明示的に設定します。

 whois "domain google.com"

2.「ドメイン」の結果のみを返すwhoisホストを使用する

whois -h geektools.com google.com 

詳細については、 whoisの結果にジャンクが含まれる理由と、それを取り除く方法 を参照してください。

2
mikemaccana

Google.comのWHOIS情報をリクエストすると、すべてのレコードで「google.com」が検索され、期待どおりにパターンが最後に固定されません。

また、WHOISクライアントとそれが使用するように構成されているサーバーによって異なります。数年前、社内のWHOISサービスの設定について調査しました(私は大学で働いているので、小さな領地とネットワークがたくさんあります)。私が知る限り、データには一貫した構造がほとんどありませんでした。フォーマットなので、クライアントは紹介などを把握するために多くのヒューリスティックを採用する必要があります。私の推測では、dnsstuffとgodaddyはおそらくもっと調整されたヒューリスティックを持っています。したがって、別のクライアントを試すだけかもしれません。

1
Wil Cooley

ドメイン名の直前の最初に等号を使用してwhoisクエリを実行します。目に見えるのは、役に立たないいたずらとして、レジストリで作成された純粋なバニティネームサーバーです(技術的な影響はありません)。

0
Patrick Mevzek