Prepare for the CompTIA Cloud+ Exam with our tailored quizzes, featuring flashcards and comprehensive multiple-choice questions. Each query is accompanied by hints and detailed explanations to enhance your readiness!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which command is used to capture live network traffic for troubleshooting DNS issues?

  1. dig

  2. netstat

  3. tcpdump

  4. nslookup

The correct answer is: tcpdump

The command used to capture live network traffic, specifically for troubleshooting DNS issues, is tcpdump. This tool allows users to monitor and capture packets flowing through a network interface in real-time. By using tcpdump, you can filter traffic to focus on DNS queries and responses, which can help diagnose problems such as misconfigurations, timeouts, or communications issues with DNS servers. In contrast, while dig and nslookup are effective tools for querying DNS records and can provide insights into DNS resolution issues, they do not capture live traffic; they simply send requests to DNS servers and receive replies. Netstat, on the other hand, is used for displaying network connections, routing tables, and interface statistics but does not capture live traffic data. Therefore, tcpdump is the most appropriate choice for real-time analysis and troubleshooting of live DNS traffic.