Skip to content

Commit

Permalink
update: dig command doc (#1360)
Browse files Browse the repository at this point in the history
* update: dig command doc

* Update src/content/docs/en/pages/guides/edge-dns/run-dig-command.mdx

---------

Co-authored-by: “GabrielAzion” <“gabriel.alves@azion.com”>
Co-authored-by: isidrohernandezazion <isidro.hernandez@azion.com>
  • Loading branch information
3 people authored Nov 5, 2024
1 parent cd1c0a2 commit a9cdaec
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions src/content/docs/en/pages/guides/edge-dns/run-dig-command.mdx
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
---
title: How to look up DNS servers with Dig command
description: >-
Learn how to effectively use the "dig" command with Windows and Linux,
enabling precise DNS querying and troubleshooting, and testing it with edge
applications.
Learn how to specify DNS servers with the dig command.
Step-by-step guide for Windows and other systems,
including Google DNS queries and record lookups.
meta_tags: 'dig, edge computing, dig command, azion edge dns'
namespace: documentation_how_to_troubleshoot_dig
permalink: /documentation/products/guides/run-the-dig-command/
---

import LinkButton from 'azion-webkit/linkbutton';

**Dig** or **dig command** is a command-line tool for querying domain information on Domain Name System (DNS) servers. Originally called *Domain Information Groper*, the command is part of BIND, a group of networking tools maintained by the Internet Systems Consortium (ISC).
The **dig** or **dig command** queries DNS servers and provides detailed domain information. This command-line tool, part of the BIND networking toolkit, helps you investigate DNS configurations, verify record propagation, and troubleshoot domain issues across different DNS servers.

The `dig` command is commonly used for network and domain troubleshooting, and also other DNS operations. It's also a multiplatform and an alternative to the discontinued `nslookup`.
The `dig` command enables you to perform precise DNS queries by specifying which DNS server to use. You can query any DNS server directly, whether it's Google's public DNS (8.8.8.8) or your organization's DNS servers. This flexibility helps you validate Edge Computing services, verify DNS propagation, and debug resolution issues. It has become the industry standard replacement for nslookup, offering enhanced DNS troubleshooting capabilities across Windows, Linux, and macOS systems.

<iframe width="560" height="315" src="https://www.youtube.com/embed/KB4f4bSyHgI?autoplay=1" title="Dig into DNS: Install & Use Dig Command Like a Pro" loading="lazy" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
When working with **DNS queries**, you can:
* Query specific DNS servers to verify record updates
* Check different DNS record types (A, AAAA, MX, CNAME)
* Track complete DNS resolution paths
* Measure response times from different servers
* Compare results across multiple DNS providers
* Execute batch queries for multiple domains

The `dig` displays comprehensive DNS responses in a structured format, including query statistics, server information, and precise timing data. This detailed output helps you identify DNS issues quickly and validate domain configurations effectively.

---

## Installing the dig command

By default, the dig command is installed on most versions of macOS and some Linux distributions, but it isn't installed on Windows and most Linux distributions.
The `dig` command comes pre-installed on most macOS versions and some Linux distributions. Since it's not available by default on Windows and many Linux distributions, we provide installation guides to help you set up this essential DNS troubleshooting tool. As part of the BIND toolkit, dig serves as an alternative to the discontinued nslookup command, offering comprehensive DNS query capabilities across all major operating systems.

### Installing dig on Windows

Expand All @@ -41,6 +49,18 @@ To install the command on Debian-based distributions such as Ubuntu, PopOS, and
> For other Linux distributions, see the developer documentation.
3. Run `dig -v` to check the installed version.

### Installing the dig command: video guide

This comprehensive video demonstrates how to install and use the dig across different operating systems. You'll learn how to:
* Install dig on Windows and Linux
* Perform basic DNS lookups
* Check CNAME records
* Understand dig responses
* Validate Edge Computing services


<iframe width="560" height="315" src="https://www.youtube.com/embed/KB4f4bSyHgI?autoplay=1" title="Dig into DNS: Install & Use Dig Command Like a Pro" loading="lazy" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

---

## Using the dig command
Expand Down

0 comments on commit a9cdaec

Please sign in to comment.