Linux - nslookup

How can we look up the MX record for a given domain? How can we determine the mail server for a given domain?

nslookup -type=MX

or use

How can we look up the text record of a given domain?

nslookup -type=txt

How can we lookup a domain using a specific DNS server?

nslookup -type=txt

In the above example, we look up the domain using the DNS server Instead of using, we can also use it's IP address.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License