WHOIS is a query and response protocol that is widely used for querying databases to get information about registered domain names, including the name servers they are configured to work with. You can also use WHOIS to query an IP address.