What is the Linux Dig command?

Get ready to learn about a built-in utility tool that you can find on most Linux distros and use for domain probing. The tool is called Dig.

What is the Dig command?

Dig command is a built-in Linux command that you can access through the Terminal application and perform DNS queries. The full name is Domain Information Groper. You can troubleshoot your domain, get all kinds of information about it, including DNS records, name servers, and general network data. What is awesome about it is that it has more functionality than some other built-in tools like nslookup, and it is very easy to use. This is why many network administrators are using it daily, despite its basic command-line interface. 

If you are interested in Dig commands we recommend you to look at this article – 10 most used Dig commands!

Linux host command explained

What is the Linux host command?

The Linux Host command is utility software for DNS probing that you get pre-installed on most Linux distros like – Ubuntu, Linux Mint, Red Hat, CentOS, Arch Linux, and more.

Linux Host command can show you different information for the host, its IP addresses, DNS records, and check name servers.

It does not have a graphical interface, but its CLI is enough to display all the information needed. It is a very light and fast tool that can show you information about DNS records like A, AAAA, MX, NS, SOA, and more. You could have already guessed. It can show you information about the host like its IP addresses and more.

What is the purpose of the Linux Host command?

How to use the MTR command?

How to use the MTR command on Linux?

It is very easy to use the MTR command through the Terminal on your Linux computer. Just follow these 3 steps:

  1. First, you need to be an administrator. That means to have a Linux account with sudo privileges.
  2. Second, you will need to install it. The MTR command is not pre-installed like other popular commands. The package name is “mtr”. For that purpose, you will need to execute one of the following commands, depending on your Linux distro:

Ubuntu, Debian, Linux Mint, and others based on Ubuntu or Debian:

sudo apt-get install mtr

Red Hat, CentOS, and Fedora:

sudo yum install mtr

Arch Linux, Manjaro Linux, and other Arch-based:

pacman -Sy pacman -S mtr

  1. Third, use the basic MTR command or combine it with some of the options that you have for it. See the complete list of options below. 

Basic MTR command: 

mtr domain.com 

*Change the domain name with the one you want. 

Suggested article: What is Traceroute command?