2010-12-11 2 views
1

나는 다음과 같은 코드를 인터 닉 WHOIS에 대한 액세스를 테스트했다 :의심스러운 결과 인터 닉 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. 

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 <<< 

사람이 나는 이유를 알고 있습니까 :

$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); 
} 

놀랍게도,이 내가 가진 출력했다 이 이상한 반응을 보이고 있습니까?

답변

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"를 입력하면 사용할 수있는 키워드 중 하나가 "domain"이므로 "domain google.com"을 입력하면 하나의 레코드가 생성됩니다. 이게 도움이 되니? 또한 "="은 원래의 "유익한"메시지가 말하는 것과 완전히 다른 것을 의미합니다. –