The command dig is a tool for querying DNS nameservers for information about host addresses, mail exchanges, nameservers, and related information.