Moving from DIG to HOST

By | April 21, 2015

Query a particular DNS Server for a hostname

dig @


Query for MX records

dig mx

host -t MX

Query for MX records

dig NS

host -t NS

Reverse DNS

dig -x


Possibly useful flags

-a            Make a verbose query of type ANY. Equivalent to -v -t ANY.

-r             Perform non-recursive query to the name server by clearing RD (“recursion desired”) bit of the query.

-s            Report SERVFAIL responses as they are, do not ignore them..

-t             type

Perform DNS query of type type, which can be any standard query  type name (A, CNAME, MX, TXT, etc), a wildcard query (ANY)