I want to determine where a bunch of websites are hosted: ViaWest, GoDaddy, Amazon Web Services, etc..
There's are free tools online that do this, but this will be slow to use for the number of sites I want to check (hundreds).
I want to script this. I've tried the following bash commands with no luck:
whois
finger
nmap
dig
None of them return the website's host, although they are helpful for things like IP addresses and nameservers. Any ideas?
I also looked into a script that would query the webhostinghero site, but it seemed like there should be an easier way. I have a list of urls and corresponding IPs, if that helps. Thanks in advance.