Files
oam/knowledge base/dig.md
2023-09-14 00:23:33 +02:00

891 B

Dig

Table of contents

  1. TL;DR
  2. Sources

TL;DR

# Installation.
apt-get install 'dnsutils'
yum install 'bind-utils'

# Perform a DNS lookup.
dig 'google.com'
dig 'google.com' 'A'

# Perform a reverse lookup.
dig -x '172.217.14.238'

# Only show the IP from the result.
dig 'google.com' '+short'

# See resolution trace.
dig 'google.com' '+trace'

# Ask a specific DNS server.
dig '@8.8.8.8' 'google.com'

# Return all results.
dig 'google.com' 'ANY'

Sources