更新中国地区ip列表

  

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

你可能感兴趣的:(IP)