traceroute tells you the IP addresses your packet hops to on the way to the server.whois tells you information about the website host. you can do whois [IP address] or whois [host name] since host IP and host name are just different versions of the same information.
man traceroute or man whois to learn more about the command.