Get the whole list:

wget ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-latest

Parse it with the following script:

grep DK.ipv4 delegated-ripencc-latest | awk -F'|' -vOFS=/ '{print $4,32- log($5)/log(2)}' | while read network; do whois --verbose -h whois.ripe.net -T route -x $network >>danske_netblokke 2>&1; sleep 2; done

Now extract the IP subents:

cat danske_netblokke |grep route: | cut -d: -f2| sed 's/[[:space:]]//g'
indexes/get_all_danish_ip_subenets.txt · Last modified: 2009/10/08 16:54 by domingo
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki