更新中国地区ip列表

时间:2021-03-23 15:13:58

鉴于高总的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\n", $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\n", $4, 32-log($5
)/log(2)) }' > /etc/chinadns_chnroute.txt