Forrest logo
back to the nslookup tool

nslookup:tldr:961a1

nslookup: Query for a mail server (MX record) of the domain, showing details of the transaction.
$ nslookup -type=MX -debug ${example-com}
try on your machine

The "nslookup" command is a network troubleshooting tool used to obtain information about the Domain Name System (DNS) of a domain.

Here is an explanation of each element of the command:

  • "nslookup" is the command itself.
  • "-type=MX" specifies the query type as "MX" (Mail Exchange). This indicates that the command is looking for mail server information for the provided domain.
  • "-debug" activates the debug mode, which displays additional information and diagnostic details.
  • "${example-com}" is a placeholder representing the domain for which you want to find the MX record. You would replace this with the actual domain you wish to query.

In summary, this command will perform a DNS lookup for the MX record of a specific domain, providing you with information about the mail servers responsible for handling emails for that domain. The debug option will provide further details about the query process.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the nslookup tool