How to install dig, nslookup, host commands in Linux

How to install dig, nslookup, host commands? These commands are very important for Linux server administrators, especially the peoples who are working on web hosting field.

These commands are very much useful to lists the DNS zone details of a domain name. Identifieng these things are very important in web hosting support filed.

A newly installed machine may not have dig, nslookup, host commands by default. So we have to manually install them on our servers. All these commands are included in a package called “bind-utils”.

But different OS have different package names. I will be doing everything as root user, if you don’t have root privileges then you just have to add sudo before every command.

How to install dig, nslookup, host commands?
How to install dig, nslookup, host commands?

Installing is pretty straight process by the way.

My ubuntu sources list

root@crybit:~# 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

How to install dig, nslookup, host commands in Debian based server?

In ubuntu systems it is “dnsutils”

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

How to install dig, nslookup, host commands in rpm based machine using YUM?

In RHEL/Centos it will be bind-utils

root@crybit:~# yum install bind-utils

The above commands are quit strait forward and simple to use.

Have a nice DNS lookup!! 🙂

Sar command usage with examples in Linux

Sar command is one of the smart command in Linux. System Activity Reporter (SAR) is one of the important tool to monitor Linux servers.

This command will helps system administrators to check the server resources status at different time frames. By using this command we can analyse the history of different resource usages.

We already discussed the “Load and Memory monitoring using SAR“. In this article I’m explaining the installation steps and the command line usages.

, ,

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

2 thoughts on “How to install dig, nslookup, host commands in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *