nslookup

To find IP of a domain, use

To find MX record for a domain, use

To see TXT records, run