What Is The Function Of The Nslookup Utility?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
nslookup is one of the networking commands. It is the tool that provides great help for querying and testing the DNS solution. It is also used in troubleshooting DNS-related problems. Let us discuss nslookup in windows. It is also available in Linux operating system.
The basic definition of the NSlookup is, it is a command-line tool that is used to query DNS i.e used to lookup the DNS records. It does all the functions that the DNS resolvers do. It sends the queries to the DNS servers for the DNS records. nslookup tries to map the IP address for a domain name. Suppose if we wanted to use google we can perform “nslookup google.com” in the command prompt. These will retrieve all the DNS records for google. After performing the command in the command prompt we can see the IPV6 address along with the DNS name.
We also have similar tools like a dig. They query DNS for the DNS entries. We can ask the DNS server for the IP address. Let us take an example to understand in detail, when we want to know the IP address of any website or any Url, we just give the name of the server that anyone wants to access in the command prompt.
The packets come out of the computer when only the user gives the name, the DNS server comes to the action to convert the name or URL into their corresponding IP address. It is simply to get the IP address for the given names for the computers. After knowing the IP address, now we should check whether the computer is able to reach the entered name or website in the command prompt. We use Ctrl – c to come out of the current execution, it aborts the current execution.
After finding the IP address of our searched name, we should find, whether the given name or URL is reachable or not. To find this, we must give “ping IP address”. After issuing the command, the computer sends four packets to the name and we get the four replies from the Url or name we have given in the cmd.
We can understand that there is no loss of data taking place since we have sent four packets of data and we received acknowledgment of four packets of the data. Here we have used the ping command, it is a very convenient command to check whether the two computers are reachable or not.
Now, let us try to reach some of the nonexisting computers which do not exist in our network. Let send four packets to the non-existing IP address, we do not receive any acknowledgment from the sent address.
The packets that we have sent have not reached their destination, which drives to the loss of packets. Therefore, we have concluded that we can get the IP address of the URL or any name by giving the command “nslookup name”, which shows, IP address, IPV6 address along with the DNS name.