How to install nslookup, dig, host commands in Linux

This article will teach you how to install the dig and nslookup commands on Linux. These commands are used to troubleshoot networks and acquire information about domain names.

The bind-utils package includes the nslookup function. You will get an error when you attempt to nslookup any domain without bind-utils:

We know Nnslookup, Dig and host commands are not available on a freshly installed computer. As a result, we’ll have to install them manually on our servers. All of these commands are included in the bind-utils package. However, various operating systems have distinct package names.

I’ll be performing everything as the root user, but if you don’t have root access, you can install nslookup by adding sudo before each command.

By the way, installing Nsllokup on Linux is a rather simple procedure.


Sources for Ubuntu in my ubuntu list

root@serversupportz:~# cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu lucid main
deb http://archive.ubuntu.com/ubuntu lucid-updates main
deb http://security.ubuntu.com/ubuntu lucid-security main
deb http://archive.ubuntu.com/ubuntu lucid universe
deb http://archive.ubuntu.com/ubuntu lucid-updates universe

In Ubuntu systems it is “dnsutils”

root@serversupportz:~# apt-get update
root@serversupportz:~# apt-get install dnsutils -y

In RHEL/Centos it will be bind-utils

root@serversupportz:~# yum install bind-utils

Well done! now You are succesfully installed nslookup, dig, host commands in Linux

If you are still having problems installing nslookup, you can contact Server Supportz. The server supportz is a cheap web hosting and server support provider based in the United States. They will work with you to have nslookup installed as soon as feasible.. Server supportz’s dedicated server management specialists will ensure that you always have access to a well-managed and secure server, with no hassle from hardware or software troubleshooting.

Supportadminserver

Recent Posts

How to install VestaCP on CentOS 7

This guide will walk you through installing and configuring your VestaCP control panel on a dedicated server or virtual private… Read More

2 years ago

How to add OpenVZ templates to the SolusVM?

Step:1 Connect to the SolusVM Master server via SSH Step:2 Change directory to /vz/template/cache directory cd /vz/template/cache/ Step:3 Download pre-created… Read More

2 years ago

How to Install Tomcat 9 on Ubuntu 18.04

Apache Tomcat 9 is an open-source Java Servlet, JavaServer Pages, Java Expression Language, and Java WebSocket implementation. It is currently… Read More

2 years ago

Outsourced Web Hosting Support Services For Small Businesses

Outsourced web hosting support services provide small businesses with a variety of alternatives for managing their websites. Modest business owners… Read More

2 years ago

Consider These Important Factors Before Choosing A Web Host

If you are looking for a quality web hosting provider, keep the following points in mind while Choosing a web… Read More

2 years ago

Increase Website Performance with these tricks

Guidelines for Increasing the Speed of Your Website After you've tested your website's performance, you can begin improving it. There… Read More

2 years ago