檢視Google Cloud的IP地址段

衡子發表於2018-12-25

for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`

do

 dig txt $LINE +short

done | tr " " "\n" | grep ip4  | cut -f 2 -d : | sort -n

相關文章