<SPAN class=unnamed3>域名查询代码公布 <br /> <?php <br />// <a class="link_keyword" href="http://www.qqread.com/keywords/network-technique.html" target="_blank">网络技术</a>主管座右铭:三人行,其必有我师焉。http://www.ctohome.com <br /><table border="0" align="left" class=ppc_download_ad_frame cellspacing=0 cellpadding=0 width="1%" style="margin-top:10px;margin-right:7px;margin-bottom:3px;margin-left:0px">
<tr>
<td id=a><img height=9 width=9></td>
<td id=b width="100%"><img height=1 width=1></td>
<td id=c><img height=9 width=9></td>
</tr>
<tr>
<td id=d><img height=1 width=1></td>
<td id=e valign=top height="100%"><!-- frame contents -->
<table cellspacing=0 cellpadding=0 border=0>
<tr>
<td><div id="w_hzh"></div></td>
</tr>
</table>
<!-- /frame contents --></td>
<td id=f><img height=1 width=1></td>
</tr>
<tr>
<td id=g><img height=9 width=9></td>
<td id=h><img height=1 width=1></td>
<td id=i><img height=9 width=9></td>
</tr>
</table>// 这个代码可以是说是非常的SMART,我改动了小小部分使它更容易用。 <br /><br />$moreinfolist = array( // 储存WHOIS查询主机的连接方法 <br />'at' => 'www.ripe.net/cgi-bin/whois?query=', <br />'au' => 'www.aunic.net/cgi-bin/whois.aunic?', <br />'bm' => 'www.bermudanic.bm/cgi-bin/BermudaNIC/rwhois_query_get.pl?query_text=', <br />'ch' => 'www.switch.ch/cgi-bin/domain/search_domain?keyword=', <br />'com'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', <br />'cz' => 'www.ripe.net/cgi-bin/whois?query=', <br />'de' => 'www.ripe.net/cgi-bin/whois?query=', <br />'dk' => 'www.ripe.net/cgi-bin/whois?query=', <br />'edu'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', <br />'es' => 'www.nic.es/whois/index.php?type=Dominios&key=', <br />'fi' => 'www.ripe.net/cgi-bin/whois?query=', <br />'fo' => 'www.ripe.net/cgi-bin/whois?query=', <br />'fr' => 'harmonic.nic.fr/cgi-bin/HarmoNIC.pl?Annu_Suffixe=&Annu_Action=Rechercher&Annu_Automaton_State=17&Annu_Motif=', <br />'gl' => 'www.ripe.net/cgi-bin/whois?query=', <br />'gm' => 'www.ripe.net/cgi-bin/whois?query=', <br />'gov'=> 'www.nic.gov/cgi-bin/whois?s=nic.gov', <br />'gr' => 'www.ripe.net/cgi-bin/whois?query=', <br />'hu' => 'www.ripe.net/cgi-bin/whois?query=', <br />'id' => 'whois.idnic.net.id/cgi-bin/whois-cgi?user=', <br />'ie' => 'www.ripe.net/cgi-bin/whois?query=', <br />'il' => 'www.ripe.net/cgi-bin/whois?query=', <br />'is' => 'www.ripe.net/cgi-bin/whois?query=', <br />'it' => 'www.ripe.net/cgi-bin/whois?query=', <br />'jp' => 'www.nic.ad.jp/cgi-bin/whois_gw?lang=/e&type=DOM&rule=ex&key=', <br />'lb' => 'www.aub.edu.lb/cgi-bin/lbdr.pl?cn=', <br />'li' => 'www.switch.ch/cgi-bin/domain/search_domain?keyword=', <br />'lt' => 'www.ripe.net/cgi-bin/whois?query=', <br />'lv' => 'www.ripe.net/cgi-bin/whois?query=', <br />'mc' => 'www.ripe.net/cgi-bin/whois?query=', <br />'mil'=> 'www.nic.mil/cgi-bin/whois?stype=Domains&ctype=reg&keyword=', <br />'ms' => 'www.adamsnames.tc/whois/?seen=y&domain=', <br />'mx' => 'www.nic.mx/cgi/whois?', <br />'net'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', <br />'no' => 'www.ripe.net/cgi-bin/whois?query=', <br />'nz' => 'www.domainz.net.nz/facility/namesearch/Result.asp?prmMode=Search&DomainName=', <br />'org'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', <br />'pt' => 'www.ripe.net/cgi-bin/whois?query=', <br />'ro' => 'whois.rotld.ro/cgi-bin/whois?whois=', <br />'sk' => 'www.ripe.net/cgi-bin/whois?query=', <br />'sm' => 'www.ripe.net/cgi-bin/whois?query=', <br />'tc' => 'www.adamsnames.tc/whois/?seen=y&domain=', <br />'tf' => 'www.adamsnames.tc/whois/?seen=y&domain=', <br />'th' => 'www.thnic.net/cgi-bin/whois.pl?server=whois.thnic.net&string=', <br />'tj' => 'www.nic.tj/whois.cgi?domain', <br />'tr' => 'whois.cc.metu.edu.tr/whois/wwwwhois?Whois=', <br />'uk' => 'www.nic.uk/cgi-bin/whois.cgi?query=', <br />'va' => 'www.ripe.net/cgi-bin/whois?query=', <br />'vg' => 'www.adamsnames.tc/whois/?seen=y&domain=' <br />); <br /><br /># where can we get more info? <br />$moreinfo = FALSE; <br />for ( reset($moreinfolist) ; list($tail, $moreinfoname) = each($moreinfolist) ; ) <br />if ( eregi("\\.$tail\$", $address) ) { // 比较域名后缀 <br />$moreinfo = $moreinfoname; // 遇到匹配项就立即结束循环 <br />break; <br />} <br /><br />if ( $moreinfo && $address) { // 跳转到WHOIS主机 <br />header('Location: http://'. $moreinfo . $address); <br />exit(); <br />} <br />else { <br />echo "<form action=$PHP_SELF method=post> <br />请输入域名:<input name=address> <br /><input type=submit></form>"; <br />} <br /><br />?> <br /><br /><html> <br /><br /><head> <br /><title>whois tool</title> <br /></head> <br /><br /><body> <br /><br /><p>网络技术主管汉化解释</a>.</p> <br /><br /><hr /> <br /><address>http://www.ctohome.com</address> <br /><br /></body> <br /><br /></html> <br /><br /><?php <br />highlight_file("whois.php"); <br />?> <br /><br /></SPAN>
</div>
</div>