The -t
parameter is also used to specify the type of DNS record to be queried, but it differs from -q
in that it can query more types of DNS records. Note that some DNS record types can only be queried using either -q
or -t
, depending on the version of nslookup
you are using.
nslookup example.com
nslookup -q=mx example.com
nslookup example.com 8.8.8.8
nslookup -d example.com
nslookup -6 example.com