网通、电信、教育网IP查询

教育网地址查询:

http://www.nic.edu.cn/member/cindex.html
http://www.nic.edu.cn/RS/ipstat/
http://www.nic.edu.cn/RS/ipstat/cernet-ipv4.txt(聚合的)

获取网通地址列表:
shell> wget http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz
shell> tar xzvf ripe-dbase-client-v3.tar.gz
shell> cd whois-3.1
shell> ./configure
shell> make

完成上述编译安装工作后,我们开始获取IP地址段:
中国网通:shell> ./whois3 -h whois.apnic.net -l -i mb MAINT-CNCGROUP > /var/cnc
中国电信:shell> ./whois3 -h whois.apnic.net -l -i mb MAINT-CHINANET > /var/chinanet
中国铁通:shell> ./whois3 -h whois.apnic.net -l -i mb MAINT-CN-CRTC > /var/crtc
打开获取后的文件可以看到里面的信息非常详细,甚至可以看到各个分公司的负责人、电话、电子邮件等等信息。
如果想得到一份整齐干净的IP地址段文件,只要用grep和awk简单过滤就可以了。

使用ripe-whois3获得电信,网通等运营商的ip地址
Linux中下载安装
http://ftp.apnic.net/apnic/dbase/tools/ripe-whois-tools-2.3.tar.gz
tar xzvf ripe-whois-tools-2.3.tar.gz
cd /usr/ports/net/ripe-whois3
make install clean
rehash

查询:
中国网通: whois3 -h whois.apnic.net -l -i mb MAINT-CNCGROUP
中国电信: whois3 -h whois.apnic.net -l -i mb MAINT-CHINANET
中国铁头: whois3 -h whois.apnic.net -l -i mb MAINT-CNC-CRTC
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章