I'm relatively new to Linux and attempting the following:
I currently have a simple bash loop where I'm hoping to iterate through a list of IPs in a file to output respective 'whois' information. When I run the 'whois [IP]' command individually, it works fine. However, when I attempt to loop them in a script file, I get the following error: No whois server is known for this kind of object.
I know of one resolution where I can add a list of all known TLDs (as of June/2019) to a file in /etc/whois.conf
My current bash script is as follows:
#!/bin/bash
for ip in $whois_test ; do
whois $ip
done
Ultimately, I'm trying to develop a script that can iterate through any size list of IPs and output whois information - without erroring, of course. Thank you!