How to do nslookup on Linux?
There are many methods of doing NSlookup on any operating system. But if you will use the simplest method available on the Linux system then you'll have to get started with ping which we have covered in a previous tutorial, How to Do Ping on Linux. We hope this article will help you to learn how to do nslookup on the Linux operating system. So just go ahead and start.
NSlookup is very easy to setup but sometimes it does not work properly or has some issues that makes us unable to check DNS servers. So keep reading to learn how to do nslookup.
To know more about linux DNS servers, how-to-dns-servers and check open-resolv.org list visit the source mentioned below.
Download and Install Name Server Utilities on Linux. First install some name server utilities on your Linux distribution, this will help you to check nameserver details on your Linux machine. First Start by installing the name server (dnsutils) package for the most recent version of your distribution. For example, on Fedora: yum -y install dnsutils #Fedora 16.04.4
You can also find the latest stable version of this package at. On Ubuntu: sudo apt-get install dnsutils. Other OS: You should find following output when searching for nameserver on dpkg -l list. After installing the package using dpkg-query -l dnsutils: As you can see the package's section now changed, and is listed like dnsutils . Checking name server on Linux. When you run command nslookup it should work as any other DNS client tool available. You should be able to access the website (www.google.com ) by entering www.com
If everything is working fine it should give you the following output: root@debian8:~/Desktop# nslookup www.com Server: 8.8 Address: 8.8#53 Non-authoritative answer: Name: www.
Related Answers
How to install nslookup command in CentOS 7?
I mean to check the hostname, ip address. k1l...
What is the Linux version of nslookup?
Nslookup. nslookup is a command-line tool for querying the n...
How do I get nslookup on Linux?
Nslookup has a slew of different query modes that you can us...