nerdexam
CompTIACompTIA

XK0-005 · Question #1352

XK0-005 Question #1352: Real Exam Question with Answer & Explanation

Sign in or unlock XK0-005 to reveal the answer and full explanation for question #1352. The question stem and answer options stay visible for context.

Scripting, Containers, and Automation

Question

A lab virtual image is always named pc21.local and in variety of testing situation. The administrator wants to use the IP address pc21.local in a script but is concerned it may change from day to day, as the image is rebuilt fairly often. Which of the following should the administrator add to a script to ensure the IP address is always accurate?

Options

  • AMYIP =$(dig pc21.local +short
  • BMYIP =$(dig pc21.local +norecurse +nocomments)
  • CMYIP =$(dig pc21.local + answer + mostatus
  • DMYIP =$(dig pc21.local +authority)

Unlock XK0-005 to see the answer

You've previewed enough free XK0-005 questions. Unlock XK0-005 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#dig Command#Scripting#Automation
Full XK0-005 PracticeBrowse All XK0-005 Questions