• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dnstracer: command not found

by Deepika

The dnstracer command in Linux is a command-line tool that traces DNS (Domain Name System) queries from a host to the authoritative DNS server for a domain. It can be used to troubleshoot DNS issues by identifying any intermediate servers or routing problems that may be causing delays or errors in resolving DNS queries. The command is typically used in the format dnstracer domain.com, where “domain.com” is the domain for which you want to trace the DNS queries.

If you encounter the below error while running the command dnstracer:

dnstracer: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install dnstracer
Ubuntu apt-get install dnstracer
Alpine apk add dnstracer
Arch Linux pacman -S dnstracer
Kali Linux apt-get install dnstracer
Fedora dnf install dnstracer
OS X brew install dnstracer
Raspbian apt-get install dnstracer

dnstracer Command Examples

1. Find out where your local DNS got the information on www.example.com:

# dnstracer www.example.com

2. Start with a [s]pecific DNS that you already know:

# dnstracer -s dns.example.org www.example.com

3. Only query IPv4 servers:

# dnstracer -4 www.example.com

4. Retry each request 5 times on failure:

# dnstracer -r 5 www.example.com

5. Display all steps during execution:

# dnstracer -v www.example.com

6. Display an [o]verview of all received answers after execution:

# dnstracer -o www.example.com

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHEL : anacron basics (What is anacron and how to configure it)
  2. pdbedit: command not found
  3. bmon: command not found
  4. What is the purpose of .bashrc file in Linux
  5. Upgrading from CentOS/RHEL 7 to CentOS/RHEL 8 using Leapp
  6. envsubst: command not found
  7. sestatus Command Examples in Linux
  8. Running repairs on XFS Filesystems
  9. locale: command not found
  10. awslogs Command Examples (Queries groups, streams and events from Amazon CloudWatch logs)

You May Also Like

Primary Sidebar

Recent Posts

  • “az storage blob” Command Examples (Manage blob storage containers and objects in Azure)
  • “az storage account” Command Examples (Manage storage accounts in Azure)
  • “az sshkey” Command Examples (Manage ssh public keys with virtual machines)
  • “az redis” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright