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:

    ngrep | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*"  |sed '/192.168.*/d'| awk '!seen[$0]++' | while read i
        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)

  • What OS? Any price limit? Commercial use required, or personal use only?
    – Izzy
    Oct 6, 2016 at 10:56
  • Linux. Situ no Costa at all.
    – user123456
    Oct 6, 2016 at 11:14
  • OK, I've added the corresponding tags. Could you please edit your question and include some example(s) on how those IP ranges are listed, and what details you want to include from whois (best describe the entire process, e.g. "script has '', and I need to find the ORG for it from whois to process both values in this and that way")? A simple batch script might be able to achieve what you need.
    – Izzy
    Oct 6, 2016 at 13:07


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.