2010-12-11 8 views
1

私は次のコードではInterNICのWHOISへのアクセスをテストしていた。疑わしい結果のInterNIC WHOISクエリ

$domains = array('google.com'); 
$internic = fsockopen('whois.internic.net', 43); 

if (is_resource($internic) === true) 
{ 
    foreach ($domains as $domain) 
    { 
     fwrite($internic, $domain . "\r\n"); 
     socket_set_timeout($internic, 30); 

     while (feof($internic) !== true) 
     { 
      ph()->Dump(fread($internic, 4096)); 
     } 
    } 

    fclose($internic); 
} 

は驚くべきことに、これは私が得た出力した:なぜ私

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.ZZZZZZZZZZZZZ.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.COM 
GOOGLE.COM.ZZZZZZ.THE.BEST.WEBHOSTING.AT.WWW.FATUCH.COM 
GOOGLE.COM.ZZZZZ.GET.LAID.AT.WWW.SWINGINGCOMMUNITY.COM 
GOOGLE.COM.ZOMBIED.AND.HACKED.BY.WWW.WEB-HACK.COM 
GOOGLE.COM.ZNAET.PRODOMEN.COM 
GOOGLE.COM.YUCEKIRBAC.COM 
GOOGLE.COM.YUCEHOCA.COM 
GOOGLE.COM.WORDT.DOOR.VEEL.WHTERS.GEBRUIKT.SERVERTJE.NET 
GOOGLE.COM.VN 
GOOGLE.COM.UY 
GOOGLE.COM.UA 
GOOGLE.COM.TW 
GOOGLE.COM.TR 
GOOGLE.COM.SUCKS.FIND.CRACKZ.WITH.SEARCH.GULLI.COM 
GOOGLE.COM.SPROSIUYANDEKSA.RU 
GOOGLE.COM.SERVES.PR0N.FOR.ALLIYAH.NET 
GOOGLE.COM.SANATATEA-NOASTRA.COM 
GOOGLE.COM.SA 
GOOGLE.COM.PE 
GOOGLE.COM.P2NK-AJA.COM 
GOOGLE.COM.MX 
GOOGLE.COM.LASERPIPE.COM 
GOOGLE.COM.IS.SHIT.SQUAREBOARDS.COM 
GOOGLE.COM.IS.NOT.HOSTED.BY.ACTIVEDOMAINDNS.NET 
GOOGLE.COM.IS.HOSTED.ON.PROFITHOSTING.NET 
GOOGLE.COM.IS.APPROVED.BY.NUMEA.COM 
GOOGLE.COM.HICHINA.COM 
GOOGLE.COM.HAS.LESS.FREE.PORN.IN.ITS.SEARCH.ENGINE.THAN.SECZY.COM 
GOOGLE.COM.ESJUEGOS.NET 
GOOGLE.COM.DO 
GOOGLE.COM.CO 
GOOGLE.COM.CN 
GOOGLE.COM.BR 
GOOGLE.COM.BEYONDWHOIS.COM 
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: Sat, 11 Dec 2010 04:45:42 UTC <<< 

誰もが知っていますこの奇妙な反応を得ていますか?

答えて

2

完全一致の場合は、等号を前に付けます。そうでないと、はgoogle.comでと開始されます。ページの半分ほど下にあるhttp://allmybrain.com/2007/10/10/programming-a-client-for-the-whois-protocol/を参照してください。

この特定のサーバーでは、「=」はすべての一致の完全なレコードを表示することを意味します(再読込すると、情報メッセージに表示されます)。代わりに「domain google.com」のように「domain」キーワードを使用します。

 
[email protected]:~/rentacoder/jlw14/est$ telnet whois.internic.net 43 
Trying 199.7.55.74... 
Connected to whois.internic.net. 
Escape character is '^]'. 
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: Sat, 11 Dec 2010 05:28:12 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. 
[yadda yadda...] 
+0

私はまだ同様の出力を得ました。 –

+0

ええ、私も。それをチェックします。 –

+2

"help"と入力すると使用できるキーワードが表示されます。そのうちの1つは "domain"です。したがって、 "domain google.com"を入力すると1つのレコードが得られます。これは役に立ちますか? "="は、元の "有益な"メッセージが言っているものとはまったく異なるものを意味することも示しています。 –