dig

What is dig

dig is a commandline tool used to conduct queries against DNS servers on Linux/Unix machines.

dig usage

dig works similar to nslookup in non-interactive mode. Basic usage:

dig yaroslavgrebnov.com

The command above will display A DNS records.

In order to display DNS records of other type, t option should be used:

dig -t mx yaroslavgrebnov.com

The command above will display MX (mail exchange) DNS records.