I have scripts that list newly recognized ip ranges as source or destination.I use to attach the output I'd those script to whois in order to know the orgname of newly linked IP ranges.
Which utility would do this job
PS: An example of script:
#!/bin/bash
ngrep | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" |sed '/192.168.*/d'| awk '!seen[$0]++' | while read i
do
echo $i | tee -a /root/.config/.gnome-screenshot/.ngrep-whois-org-netrange-$(date-all)
whois $i | grep -i 'Orgname\|NetRange\|Country' | tee -a /root/.config/.gnome-screenshot/.ngrep-whois-org-netrange-$(date-all)
echo --------------------------------------------------------------------- | tee a /root/.config/.gnome-screenshot/.ngrep-whois-org-netrange-$(date-all)
done