Dig

dig is a command line tool like nslookup used to check dns,

Here is the basic usage

dig have multiple sections, ANSWER SECTION is what you need to look for. After answer section, it shows some info about DNS server used to query.

+short

+short option allow you to just slow the answer.

To find Specific Record type

Example

nslookup
dns