nerdexam
CompTIACompTIA

PT0-003 · Question #106

PT0-003 Question #106: Real Exam Question with Answer & Explanation

Sign in or unlock PT0-003 to reveal the answer and full explanation for question #106. The question stem and answer options stay visible for context.

Submitted by stefanr· Mar 6, 2026Reconnaissance and Enumeration

Question

A penetration testing team wants to conduct DNS lookups for a set of targets provided by the client. The team crafts a Bash script for this task. However, they find a minor error in one line of the script: 1 #!/bin/bash 2 for i in $(cat example.txt); do 3 curl $i 4 done Which of the following changes should the team make to line 3 of the script?

Options

  • Aresolvconf $i
  • Brndc $i
  • Csystemd-resolve $i
  • Dhost $i

Unlock PT0-003 to see the answer

You've previewed enough free PT0-003 questions. Unlock PT0-003 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#DNS lookup#Bash scripting#reconnaissance tools#host command
Full PT0-003 PracticeBrowse All PT0-003 Questions