How I can find the hosted websites behind an IP using purely the Linux/Unix command line? In the age of shared hosting, it seems to occur quite often that multiple websites are hosted on the same IP. And I'm looking to find a 100% command line solution.
My only working solution requires using the browser and the command line.
dig +short hostname
- Then copying the IP address of the result into the browser and running either a Yahoo or Bing query with
This will return all the websites hosted under that IP. However, I would like to rely purely on the command line. Does anyone have any suggestions?