###Get specific record-types from specified DNS server with one command
Get specific record-types from specified DNS server with one command
To look up record types other than the default A and AAAA (and CNAME) records returned by nslookup, using the DNS server you specify:
nslookup -q=<record type> <host> <DNS server>
For example, to return MX records for the domain stackexchange.com
using DNS server 8.8.4.4
the command would be:
nslookup -q=MX stackexchange.com 8.8.4.4