• 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 Examples in Linux

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.

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. nmcli: command not found
  2. xz Command Examples in Linux
  3. Common Init.ora Parameters and Unix, Linux Kernel Parameters and Relationship Between Them
  4. What are DNS Nameserver Types in Linux
  5. CentOS / RHEL : How to Disable / Enable direct root and non-root user ssh login
  6. tcpdump: command not found
  7. debuild Command Examples in Linux
  8. Where to find ASMLib / oracleasm RPMs for CentOS/RHEL, SUSE, OEL
  9. man Command Examples in Linux
  10. userdel Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright