2 examples for dig
# Scrub all extra information and get all record for domain dig +nostats +nocomments +nocmd +noquestion +recurse YOUR.DOMAIN any
# Find IP where domain resolves and TTL dig EXAMPLE.COM # Find IP where domain resolves and TTL using a specific name server dig EXAMPLE.COM @EG.NAMESERVER.COM # List mail servers dig example.com MX +noall +answer # Reverse DNS lookup for a specific IP address dig -x 127.0.0.1