How to use nslookup command (2 examples) - ServiceDesk Plus

How to Use nslookup command?

NSlookup is a command-line tool used for testing and troubleshooting DNS servers. It is one of most powerful and frequently used tools used by Systems and Network Engineers / Administrators. This document will help you use the basic of nslookup command for checking a host name’s IP or IP’s hostname.

The primary command for entering Nslookup is:

nslookup

You can either use the command by itself to enter a dedicated command line within the nslookup program or you can enter commands on the same line to return your result and return you to the base command prompt.

For example, Open CMD and then type nslookup:

nslookup


This will return:

Default Server: UnKnown
Address: 10.20.1.1
>

Leaving you at a prompt within nslookup. Here you will be able to see the Default Server name which reflects your DNS server name and Address which reflects your DNS server IP address. 

In here, you can type in any hostname for which you would like to get the IP address. Your computer will contact your DNS server to ask for the DNS resolution and will display to you the IP address(es) once it gets an answer. Instead of the hostname, you can also type in the IP Address and your computer will get the hostname for the specified IP and give it to you in the CMD Window.

Alternatively, in CMD window, entering:

nslookup wikipedia.org


Will return:

Server: UnKnown
Address: 10.2.0.1

Non-authoritative answer:
Name: wikipedia.org
Addresses: 2620:0:860:ed1a::1Non-authoritative answer:
Name: wikipedia.org
Addresses: 2620:0:860:ed1a::1
208.80.153.224
208.80.153.224

In this way, you can use the nslookup command-line to get the IP Address using the hostname or vice-versa.

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to run ServiceDesk from command prompt?

                      Open a command prompt window in the elevated mode (run as administrator) and change directory to             cmd> [SDP-Home]\bin [SDP-Home] here, is assumed to be ServiceDesk home directory (\ManageEngine\Servicedesk\bin) Start the server from the ...
                    • Host ServiceDesk Plus on the Internet

                      In order to make ServiceDesk Plus available for users on Internet, let us assume the following scenarios. Scenario 1: ServiceDesk Plus is installed in LAN and should be available in LAN and WAN: Assume ServiceDesk Plus is installed on a server in the ...
                    • How to migrate ServiceDesk Plus from one server to another

                      Following are the steps to move data from the existing server to a new server, Step 1: Stop ManageEngine ServiceDesk Plus service. Step 2: Kindly Upgrade ServiceDesk Plus if required. Refer to the link below to check if you are in the latest version, ...
                    • How to use Account based support e-mail address ?

                      How can i raise a request through an Email and how it will be assigned to an Account? In your mail-server, create a user e-mail account to which all e-mails will be fetched. Create an e-mail alias for this e-mail account for each of your customer ...
                    • How to redirect ServiceDesk Plus URL from HTTP to HTTPS

                      Follow the steps given below to set up the redirection from HTTP to HTTPS, For version 9.4 and above Step 1: Go to the below location and open the file 'server.xml' with a word pad and add the below entry in the file as shown in the image. ...