What is use of nslookup command in Linux?
Nslookup is a command which is used to check the IP address and port of a host.
You can use nslookup command for checking whether your modem is connected properly to a router or not.
It's an alternative to ping. Nslookup can connect to a specific hostname (or CNAME), but you need to provide both the hostname and the domain.
For example, nslookup www.com google.com will query a recursive nameserver to find all google records that have the name www. The same syntax works for resolving hostnames, or for querying specific servers, such as ntp.ubuntu.
It will check the domain and return the IPs of hosts that resolve to that domain. So, nslookup www.com and nslookup www.com will both return the same set of IPs, the first one being example.com and the second one being google.
Related Answers
How to do a reverse lookup with nslookup?
To check the status of the reverse lookup name, you need to perform DNS reverse...
What is the difference between DNS lookup and reverse DNS lookup?
A "reverse lookup" is a function performe...
What is DNS reverse lookup type?
I am trying to troubleshoot some problems with DNS. I want to test a rev...