更新中国地区ip列表

鉴于高总的IPIP.net的数据库的准确性,推荐使用下列源:

https://github.com/17mon/china_ip_list/blob/master/china_ip_list.txt

  

wget -O- 'http://202.12.29.205/apnic/stats/apnic/delegated-apnic-latest' | awk -F| '/CN|ipv4/ { printf("%s/%d ", $4, 32-log($5
)/log(2)) }' > /etc/chinadns_chnroute.txt

 

或者

wget -O- 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | awk -F| '/CN|ipv4/ { printf("%s/%d ", $4, 32-log($5
)/log(2)) }' > /etc/chinadns_chnroute.txt

原文地址:https://www.cnblogs.com/sixiweb/p/4458223.html