The 'dig' command is used to query Domain Name System (DNS) servers. When you run 'dig', followed by a domain name, it sends a DNS lookup request to a DNS server and then shows the response it gets from the server. This is useful for troubleshooting DNS issues and for confirming the correct operation of DNS servers.