dig, domain information groper, is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name servers that were queried. Use dig to troubleshoot DNS problems. Its flexibility, ease of use and clarity of output.