Мы в Telegram
Добавить новость

В ВТБ рассказали о зеркальных мерах с частными активами иностранцев в РФ

Власти: на месте "Крокуса" может появиться памятный сквер

Хамовники остаются самыми популярными на рынке элитной «вторички»

Черчесов выбрал двух лучших игроков сезона РПЛ



Новости сегодня

Новости от TheMoneytizer

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 […]

The post What is the Linux Dig command? appeared first on Linux Master Desk.

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. 

Why should you try the dig command?

You should try the dig command because it is superior to more limited software like nslookup and ping and can do the following:

  • Probe a domain name and get general information about it. 
  • See a list of all available DNS records with their values. 
  • Check all DNS records of a particular type like MX records. You can get all of them and see if there are more than one and they are correctly set up. 
  • Check not only domain names but IP addresses too. 
  • Trace the full route, hop by hop of a query to its destination. 

Why is dig command better?

Dig command provides more rich answers, even when you perform a basic query (dig + hostname) in comparison to nslookup (nslookup + hostname). It will show you if the answer that you are receiving is from an authoritative name server or recursive. It will also show you TTL values easily, without the need for extra probes. 

In comparison with the host command, the dig command has a clear separation of question part, answer part, authority, and additional sections. 

The dig also has more options for fine-tuning your probing, in comparison to the host command. You can really customize the Dig command’s output and make it show you just what you want. 

How to install the Dig command? 

Most of the Linux distros already have the Dig command by default. If you are using Linux and want to check if you have it, use the following command:

dig -v

If you have it, you will see the version of it (for example, DiG 9.11.3-1ubuntu1.7-Ubuntu), and if not, you will see “dig command not found”.

If you get a negative message, don’t worry. You can install it easily.

Ubuntu, Debian, Linux Mint, Kali Linux, and other Ubuntu-based and Debian-based.

sudo apt update && sudo apt install dnsutils

Red Hat, CentOS, or Fedora.

sudo yum install bind-utils

Arch Linux, Manjaro, and other Arch-based distros.

sudo pacman -S bind-tools

Dig commands examples 

Here you have several examples of dig commands with different DNS record:

dig google.com AAAA (IPv6)

dig yahoo.com NS (all name servers for the domain)

dig bing.com MX (incoming emails server for the domain)

dig yandex.com PTR (pointer for reverse lookups)

dig duckduckgo.com SOA (start of authority)

dig baidu.com A (IPv4) 

Use the pattern:

dig domain.com DNS type

And change domain.com with a domain you want and DNS type with the one you want.

dig -x 121.121.212.212 (reverse DNS lookup)

dig domain.com @1.1.1.1 (use the 1.1.1.1 name server and check its cache memory for the particular domain)

dig ns1.domain.com (check a particular nameserver)

Conclusion

This is the dig command and how you can use it. It is a nifty small utility tool that you can easily use on your Linux computer. Go try it out, see for what it can be useful to you.

The post What is the Linux Dig command? appeared first on Linux Master Desk.

Читайте на 123ru.net


Новости 24/7 DirectAdvert - доход для вашего сайта



Частные объявления в Вашем городе, в Вашем регионе и в России



Smi24.net — ежеминутные новости с ежедневным архивом. Только у нас — все главные новости дня без политической цензуры. "123 Новости" — абсолютно все точки зрения, трезвая аналитика, цивилизованные споры и обсуждения без взаимных обвинений и оскорблений. Помните, что не у всех точка зрения совпадает с Вашей. Уважайте мнение других, даже если Вы отстаиваете свой взгляд и свою позицию. Smi24.net — облегчённая версия старейшего обозревателя новостей 123ru.net. Мы не навязываем Вам своё видение, мы даём Вам срез событий дня без цензуры и без купюр. Новости, какие они есть —онлайн с поминутным архивом по всем городам и регионам России, Украины, Белоруссии и Абхазии. Smi24.net — живые новости в живом эфире! Быстрый поиск от Smi24.net — это не только возможность первым узнать, но и преимущество сообщить срочные новости мгновенно на любом языке мира и быть услышанным тут же. В любую минуту Вы можете добавить свою новость - здесь.




Новости от наших партнёров в Вашем городе

Ria.city

Блогерша Настя Ивлеева вышла в свет с кольцом на безымянном пальце

Бастрыкин затребовал доклад об исчезновении девушки в Новосибирске 15 лет назад

Концерт Лободы в Латвии закончился скандалом: «Чахнет без России»

В Москве задержали француза за сбор сведений о российской армии

Музыкальные новости

Поражения Шубенкова и Савлукова, осечка Кнороз и двойной триумф Макаренко: чем запомнился «Мемориал Знаменских»

За один день работники Уссурийского ЛРЗ и их дети выполнили сменно-суточное задание по ремонту 129 паровозиков

CЛД «Печора» филиала «Северный» ООО «ЛокоТех-Сервис» получило сертификацию для технического обслуживания локомотивов серии 2ТЭ25КМ в объёме ТО-2.

Новости и Культура, Дети и Россия: Театр Ульгэр выступил в Этнографическом музее народов Забайкалья в Улан-Удэ

Новости России

Как ЦК КПСС заботился о трудящихся

Театр Сатиры: Он, она и старый муж

В России более чем на миллион рублей подешевели внедорожники Haval H5. Машины с русифицированным меню в наличии

Алексей Москаленко: Рынок интернет-торговли нужно оздоравливать

Экология в России и мире

Россияне решили этим летом меньше отдыхать на курортах

С чем носить юбку этим летом: примеры стильных образов

Областная наркологическая больница запускает летнюю профилактическую кампанию для юных свердловчан

Приглашенные солистки выступят в опере «Руслан и Людмила»

Спорт в России и мире

Джокович — о травме: На данный момент, вроде все нормально, но я не знаю, что будет утром

«Он никогда не снимается с турниров». Циципас прокомментировал травму Джоковича

«Янника Синнера очень рано сравнивать с Роджером Федерером» // Тренер мужской сборной России по теннису Игорь Куницын — о главных событиях Roland Garros

Российский теннисист Медведев снялся с турнира в Хертогенбосе

Moscow.media

Военные следователи провели рейд по бывшим мигрантам в Керчи

"Двигался по свободной встречной полосе"

Слушатель из Смоленска выиграл на «Авторадио» «Москвич 3»

На утре.











Топ новостей на этот час

Rss.plus






Власти: на месте "Крокуса" может появиться памятный сквер

Стало известно, что может появиться на месте сгоревшего «Крокус Сити Холла»

Минздрав Забайкалья: число пострадавших в ДТП с автобусом достигло 30

В ВТБ рассказали о зеркальных мерах с частными активами иностранцев в РФ