Dig (domain information groper) is a tool that is used for querying DNS servers for various DNS records, making it very useful for troubleshooting DNS problems.
By the end of this guide you will know how to use dig to perform different types of DNS lookups in Linux.