Howtoforge published a tutorial about how to use the dig command on Linux.
Resolving domain names with dig command on Linux
This tutorial shows how to resolve domain names on the Linux shell and how to query a name server for various kinds of DNS records like A, MX and NS records. To resolve a domain name on the shell, we will use the command dig.