php socket 编程, 连接对应域的顶级域的 whois server 按 whois 协议进行查询.附: whois server list
http://www.geektools.com/dist/whoislist.gz

解决方案 »

  1.   

    有没有可能是超时?你把php超时时间设成无限看看~
      

  2.   

    whios服务器的数据库里面没有你要查找的内容。
    换个服务器地址。
      

  3.   

    先 谢谢 mrshelly   给我提供了这么多 Whois服务器地址..晚上在结贴
      

  4.   


    以 CSDN.net 的 whois 查询为例.1 在 list 里,得到 net 的whois 顶极 whois server 是 whois.crsnic.net2 telnet whois.crsnic.net 43
      csdn.net\r\n  得到服务器返回信息 
      ...Whois Server: whois.networksolutions.com...3 telnet whois.networksolutions.com 43
      csdn.net\r\n  得到 csdn.net 的whois 信息
                                                                       Registrant:
                                                                                  Be
    ijing midami technic ltd.
                                No.3 North Building,LI Kang Hotel,
                                                                     Beijng, NO STAT
    E 100101
               CN                Domain Name: CSDN.NET                                        ----------------------------------------
    --------------------------------
                                       Promote your business to millions of viewers
    for only $1 a month
                          Learn how you can get an Enhanced Business Listing here fo
    r your domain name.
                          Learn more at http://www.NetworkSolutions.com/
                                                                           ---------
    ---------------------------------------------------------------                                                                  Administrative
     Contact, Technical Contact:
                                      Tao, Jiang            [email protected]
                                                                                   C
    SDN Holdings. Co. LTD.
                                B3 2-1,Zhaowei Industry Park
                                                                  No14,jiuxianqiao R
    oad,Chaoyang dist.
                            Beijing 100016
                                                CN
                                                        +86 10 64351432 fax: +86 10
    64348545
               Record expires on 11-Mar-2011.
                                                Record created on 11-Mar-1999.
                                                                                 Dat
    abase last updated on 15-May-2009 18:43:38 EDT.                                                  Domain servers in listed order
    :    DNS2.100OK.COM               211.152.17.58
                                                     DNS5.100OK.COM               21
    1.157.101.174
      

  5.   

    整个过程不需要再做过多的讲解了吧?
    whois 协议(Client)还是蛮简单的.
    就是连接 whois server 43 端口, 发送 查询域名+"\r\n" 就OK了.返回的信息,再正则处理一下即可.
      

  6.   

    你不能直接用snoopy模拟浏览器读网页来做么?