網域名稱查詢代碼公布

來源:互聯網
上載者:User
關鍵字 網域名稱查詢代碼公布
網域名稱查詢代碼公布 
  // 網路技術主管座右銘:三人行,其必有我師焉。http://www.ctohome.com 
// 這個代碼可以是說是非常的SMART,我改動了小小部分使它更容易用。 

$moreinfolist = array( // 儲存WHOIS查詢主機的串連方法 
'at' => 'www.ripe.net/cgi-bin/whois?query=', 
'au' => 'www.aunic.net/cgi-bin/whois.aunic?', 
'bm' => 'www.bermudanic.bm/cgi-bin/BermudaNIC/rwhois_query_get.pl?query_text=', 
'ch' => 'www.switch.ch/cgi-bin/domain/search_domain?keyWord=', 
'com'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', 
'cz' => 'www.ripe.net/cgi-bin/whois?query=', 
'de' => 'www.ripe.net/cgi-bin/whois?query=', 
'dk' => 'www.ripe.net/cgi-bin/whois?query=', 
'edu'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', 
'es' => 'www.nic.es/whois/index.php?type=Dominios&key=', 
'fi' => 'www.ripe.net/cgi-bin/whois?query=', 
'fo' => 'www.ripe.net/cgi-bin/whois?query=', 
'fr' => 'harmonic.nic.fr/cgi-bin/HarmoNIC.pl?Annu_Suffixe=&Annu_Action=Rechercher&Annu_Automaton_State=17&Annu_Motif=', 
'gl' => 'www.ripe.net/cgi-bin/whois?query=', 
'gm' => 'www.ripe.net/cgi-bin/whois?query=', 
'gov'=> 'www.nic.gov/cgi-bin/whois?s=nic.gov', 
'gr' => 'www.ripe.net/cgi-bin/whois?query=', 
'hu' => 'www.ripe.net/cgi-bin/whois?query=', 
'id' => 'whois.idnic.net.id/cgi-bin/whois-cgi?user=', 
'ie' => 'www.ripe.net/cgi-bin/whois?query=', 
'il' => 'www.ripe.net/cgi-bin/whois?query=', 
'is' => 'www.ripe.net/cgi-bin/whois?query=', 
'it' => 'www.ripe.net/cgi-bin/whois?query=', 
'jp' => 'www.nic.ad.jp/cgi-bin/whois_gw?lang=/e&type=DOM&rule=ex&key=', 
'lb' => 'www.aub.edu.lb/cgi-bin/lbdr.pl?cn=', 
'li' => 'www.switch.ch/cgi-bin/domain/search_domain?keyword=', 
'lt' => 'www.ripe.net/cgi-bin/whois?query=', 
'lv' => 'www.ripe.net/cgi-bin/whois?query=', 
'mc' => 'www.ripe.net/cgi-bin/whois?query=', 
'mil'=> 'www.nic.mil/cgi-bin/whois?stype=Domains&ctype=reg&keyword=', 
'ms' => 'www.adamsnames.tc/whois/?seen=y&domain=', 
'mx' => 'www.nic.mx/cgi/whois?', 
'net'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', 
'no' => 'www.ripe.net/cgi-bin/whois?query=', 
'nz' => 'www.domainz.net.nz/facility/namesearch/Result.asp?PRmMode=Search&DomainName=', 
'org'=> 'www.networksolutions.com/cgi-bin/whois/whois/?STRING=', 
'pt' => 'www.ripe.net/cgi-bin/whois?query=', 
'ro' => 'whois.rotld.ro/cgi-bin/whois?whois=', 
'sk' => 'www.ripe.net/cgi-bin/whois?query=', 
'sm' => 'www.ripe.net/cgi-bin/whois?query=', 
'tc' => 'www.adamsnames.tc/whois/?seen=y&domain=', 
'tf' => 'www.adamsnames.tc/whois/?seen=y&domain=', 
'th' => 'www.thnic.net/cgi-bin/whois.pl?server=whois.thnic.net&string=', 
'tj' => 'www.nic.tj/whois.cgi?domain', 
'tr' => 'whois.cc.metu.edu.tr/whois/wwwwhois?Whois=', 
'uk' => 'www.nic.uk/cgi-bin/whois.cgi?query=', 
'va' => 'www.ripe.net/cgi-bin/whois?query=', 
'vg' => 'www.adamsnames.tc/whois/?seen=y&domain=' 
); 

# where can we get more info? 
$moreinfo = FALSE; 
for ( reset($moreinfolist) ; list($tail, $moreinfoname) = each($moreinfolist) ; ) 
if ( eregi("\\.$tail\$", $address) ) { // 比較網域名稱尾碼 
$moreinfo = $moreinfoname; // 遇到匹配項就立即結束迴圈 
break; 
} 

if ( $moreinfo && $address) { // 跳轉到WHOIS主機 
header('Location: http://'. $moreinfo . $address); 
exit(); 
} 
else { 
echo ""; 
} 

?> 

 

 
whois tool 
 

 

網路技術主管漢化解釋.

 

 
http://www.ctohome.com 

 

 

highlight_file("whois.php"); 
?> 


  • 相關文章

    聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.