2011-12-19 7 views
0

ドメイン名のwhoisデータを取得しようとしています。他のすべてのドメイン(.comおよび.net以外)がドメイン名情報の検索結果を提供していますが、 .comと.netレジストリのwhoisサーバー(つまりwhois.verisign-grs.com)への問い合わせ中に.comドメイン名whois.verisign-grs.comのWhoisデータを取得する

////////////////////// ///////////////////////////////////

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. 

MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM 
MICROSOFT.COM.ZZZZZZZZZZZZZZZZZZ.IM.ELITE.WANNABE.TOO.WWW.PLUS613.NET 
MICROSOFT.COM.ZZZZZZ.MORE.DETAILS.AT.WWW.BEYONDWHOIS.COM 
MICROSOFT.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM 
MICROSOFT.COM.ZZZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM 
MICROSOFT.COM.ZZZ.IS.0WNED.AND.HAX0RED.BY.SUB7.NET 
MICROSOFT.COM.WILL.BE.SLAPPED.IN.THE.FACE.BY.MY.BLUE.VEINED.SPANNER.NET 
MICROSOFT.COM.WILL.BE.BEATEN.WITH.MY.SPANNER.NET 
MICROSOFT.COM.WAREZ.AT.TOPLIST.GULLI.COM 
MICROSOFT.COM.TOTALLY.SUCKS.S3U.NET 
MICROSOFT.COM.SOFTWARE.IS.NOT.USED.AT.REG.RU 
MICROSOFT.COM.SHOULD.GIVE.UP.BECAUSE.LINUXISGOD.COM 
MICROSOFT.COM.RAWKZ.MUH.WERLD.MENTALFLOSS.CA 
MICROSOFT.COM.OHMYGODITBURNS.COM 
MICROSOFT.COM.MORE.INFO.AT.WWW.BEYONDWHOIS.COM 
MICROSOFT.COM.MATCHES.THIS.STRING.AT.KEYSIGNERS.COM 
MICROSOFT.COM.MAKES.RICKARD.DRINK.SAMBUCA.0800CARRENTAL.COM 
MICROSOFT.COM.LOVES.ME.KOSMAL.NET 
MICROSOFT.COM.LIVES.AT.SHAUNEWING.COM 
MICROSOFT.COM.KNOWS.THAT.THE.BEST.WEB.HOSTING.IS.NASHHOST.NET 
MICROSOFT.COM.IS.NOT.YEPPA.ORG 
MICROSOFT.COM.IS.NOT.HOSTED.BY.ACTIVEDOMAINDNS.NET 
MICROSOFT.COM.IS.IN.BED.WITH.CURTYV.COM 
MICROSOFT.COM.IS.HOSTED.ON.PROFITHOSTING.NET 
ICROSOFT.COM.HAS.A.PRESENT.COMING.FROM.HUGHESMISSILES.COM 
MICROSOFT.COM.FILLS.ME.WITH.BELLIGERENCE.NET 
MICROSOFT.COM.CAN.GO.FUCK.ITSELF.AT.SECZY.COM 
MICROSOFT.COM.ARE.GODDAMN.PIGFUCKERS.NET.NS-NOT-IN-SERVICE.COM 
MICROSOFT.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: Mon, 19 Dec 2011 10:42:21 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. 

//////// ///////////////////////////////////////////////////////////////// /////////////////

これは、verisignが「薄い」Whoisサーバーを維持しているためです。 この問題を解決するソリューションを提案することはできますか.comドメイン名のwhoisデータを照会するには、実際のレジストラを取得できますか。

答えて

1

example.comexample.comはあなたのドメイン)を照会するのではなく、Verisignへのソケット接続を開くと、=example.comのクエリを実行します。

利用可能なすべてのレコードの完全な情報が表示されます。

Server Name: MICROSOFT.COM.SHOULD.GIVE.UP.BECAUSE.LINUXISGOD.COM 
    IP Address: 209.187.114.147 
    Registrar: TUCOWS.COM CO. 
    Whois Server: whois.tucows.com 
    Referral URL: http://domainhelp.opensrs.net 

    Server Name: MICROSOFT.COM.ZZZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM 
    IP Address: 216.127.80.46 
    Registrar: TUCOWS.COM CO. 
    Whois Server: whois.tucows.com 
    Referral URL: http://domainhelp.opensrs.net 

    Domain Name: MICROSOFT.COM 
    Registrar: MARKMONITOR INC. 
    Whois Server: whois.markmonitor.com 
    Referral URL: http://www.markmonitor.com 
    Name Server: NS1.MSFT.NET 
    Name Server: NS2.MSFT.NET 
    Name Server: NS3.MSFT.NET 
    Name Server: NS4.MSFT.NET 
    Name Server: NS5.MSFT.NET 
    Status: clientDeleteProhibited 
    Status: clientTransferProhibited 
    Status: clientUpdateProhibited 
    Status: serverDeleteProhibited 
    Status: serverTransferProhibited 
    Status: serverUpdateProhibited 
    Updated Date: 09-aug-2011 
    Creation Date: 02-may-1991 
    Expiration Date: 03-may-2021 

そして、Domain Name:に対応するものからReferral URLを抽出し、照会を照会します。

WHOISの解析が主要ビジネスでない場合は、そのジョブにサードパーティのサービスを使用することも考えられます。

私はRoboWhois WHOIS APIの著者です。それを試してみて、それがあなたのために働くかどうかを自由に感じてください。

+0

ありがとうございます...しかし、example.comとしてexample.comをクエリし、参照URLを取得する方法を教えてもらえますか?薄いwhoisサーバーか何かを照会するための構文ですか? ? –

+0

参照サーバ(この場合は 'whois.markmonitor.com')を用意したら、ポート43でソケットコールを開き、同じドメインを要求します。 –