How to use dig and nslookup in CentOS 7

Specific tool which is important in an operating system where in this context, it is Linux operating system, it is dig and nslookup. But in order to have a tool mentioned above, dig and nslookup, there is a step which is needed to be taken so that it can be available to be executed from the Linux operating system associated. The Linux operating system mentioned in the context of this article, it is CentOS 7.

CentOS 7 has its own software package manager utility for managing the installation of application, program, package or any other tools or utilities needed to perform specific task or function. Derived from Redhat Linux operating system family, CentOS uses yum utility as its software package manager.

Speaking of installing tools or utilities which is needed to execute or to perform specific task or function, dig and nslookup are tools or utilities utilized to resolve name server.

Just type the following command calling ‘yum’ as the software package manager under CentOS to install the tool or utility represented by a package named ‘bind-utils’ :

2. The ‘nslookup” utility, it is represented by a command ‘nslookup’ which is also a command used for name server resolver and based on the manual page it functions to query Internet name servers interactively.

[root@hostname ~]# nslookup
> ^C
[root@hostname ~]#

This is the execution of the command with the additional parameter in the form of an address which is going to be resolved :