nslookup

nslookup


nslookup is a command-line tool used for querying the Domain Name System (DNS) to obtain domain name or IP address mapping information. It’s commonly used for troubleshooting DNS-related issues.

Non-interactive mode:

Specify an option inline with the nslookup command. Typically, only one option is permitted on the command line. Run multiple commands to specify different options.

Examples:

 > nslookup domain.com type=MX
 > nslookup domain.com 1.1.1.1

Interactive mode:

Specify multiple options after which you can run queries against a domain that will use the options.

Example:

 > nslookup
 > set type=A
 > domain.com
 > set type=MX
 > example.com