MS-DOS Commands :: nslookup

Overview:

Lookup the IP address of the specified fully qualified domain name, or perform a reverse lookup to get the domain name of the specified IP address.

Command Variations:

nslookup  domain

Lookup the IP address of the specified fully qualified domain name domain.

nslookup  ipaddress

Perform a reverse lookup to get the domain name of the specified IP address ipaddress.

nslookup

Access the interactive interface of the nslookup command to perform complex queries. Type help or ? for help. Type exit to exit.

Examples:

nslookup www.c3scripts.com

Performs a forward lookup and displays the IP address of the domain www.c3scripts.com. Currently, the IP address of this domain is [204.10.140.26].

nslookup 204.10.140.26

Performs a reverse lookup of the IP address [204.10.140.26] and displays its domain name. Currently, a reverse lookup of this IP returns server.c3server.com.

Since multiple domains can be assigned to the same IP address (such as in the case where a web server hosts multiple websites), performing a forward lookup (domain to IP) and then doing a reverse lookup (IP to domain) will not necessarily display the original domain.