Whois servers hold information about domain names, IP addresses and other relevant information. In a penetration test, you might need this information. With the Whois protocol you can simply query this data.
# syntax
$ whois <IP|Domain>
# example
$ whois example.com
$ whois 74.122.208.31