Created
February 5, 2015 01:04
-
-
Save wwek/f032b084471d7e8e8858 to your computer and use it in GitHub Desktop.
通过whois标准接口查询域名的注册情况
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* [$conn 通过whois标准接口查询域名的注册情况] | |
* 来源网址:http://v2ex.com/t/168346 | |
* 统一的whois标准协议,43端口。扫注册商是把简单的事情高复杂了。 | |
* 每一种后缀的管理机构不一样,官方whois源也不一样。icann的whois.internic.net只负责.com和.net | |
* 其他常见的: | |
* .cn : whois.cnnic.net.cn | |
* .biz : whois.neulevel.biz | |
* .us : whois.nic.us | |
* .info : whois.nic.info | |
* .name : whois.nic.name | |
* .gov : whois.nic.gov | |
* .edu : whois.internic.net | |
* .cc : whois.nic.cc | |
* whois.internic.net 允许批量扫描。其他后缀有的限制频率,有的不限 | |
*/ | |
$conn = fsockopen ("whois.internic.net", 43); | |
fputs($conn, "v2ex.com"."\r\n"); | |
while(!feof($conn)){ $output .= fgets($conn,1024); } | |
echo $output; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://www.iana.org/domains/root/db
Root Zone Database