# dig

*noun*

say it: **“DIG”** **/dɪɡ/**

A command that asks the internet's address book which address a name points to.

## What does **dig** do?

`dig` asks DNS what address a name points to. `+short` prints just the addresses. An empty answer means the name doesn't exist, or is misspelled, which is a common reason a site "is down".

```bash
dig +short example.com        # 104.20.23.154
dig +short bookclub.invalid   # nothing: no such name
```

## In a sentence

- “**dig** +short printed nothing, so the name didn't exist.”
- “Sam used **dig** to check where the book club's domain pointed.”

Level: Journeyman · [More Unix terms at this level](https://www.ask-codey.com/glossary?category=unix&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/dig
