Nslookup is an MS-DOS utility that enables a user to look up the IP address of a domain or host on a network. The nslookup command can also perform a reverse lookup using an IP address to find the domain or host associated with that IP address.
Availability
Nslookup is an external command that is available for the following Microsoft operating systems as nslookup.exe.
If you are using earlier versions of Microsoft Windows (Windows 95, Windows 98, or Windows ME) and you need the nslookup command, you need to download an alternative, third-party program.
Availability
Nslookup syntax
Nslookup examples
Windows NT
Windows 2000
Windows XP
Windows 7
Windows 8
Windows 10
Windows 11
Nslookup syntax
Windows Vista and later syntax
nslookup [-opt …] # interactive mode using default server nslookup [-opt …] - server # interactive mode using ‘server’ nslookup [-opt …] host # only look up ‘host’ using default server nslookup [-opt …] host server # only look up ‘host’ using ‘server’
Windows XP syntax
Commands: (identifiers are shown in uppercase, [] means optional)
- Windows Vista and later syntax.
- Windows XP syntax.
Nslookup examples
This command is often used to perform a reverse lookup on an IP address as shown in the example below. The first section specifies the domain name of the requested server. The IP address for that server is displayed in the second section.
nslookup 204.228.150.3
Server: ns.computerhope.comAddress: 1.1.1.1 Name: www.computerhope.comAddress: 204.228.150.3
nslookup
Running nslookup without specifying an IP address or domain name displays your router’s server and address. To get out of the > prompt, type exit and press Enter.