CompTIA
XK0-004 · Question #357
XK0-004 Question #357: Real Exam Question with Answer & Explanation
The correct answer is B: MYIP =$(dig pc21.local +norecurse +nocomments). See the full explanation below for the reasoning.
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)
Community Discussion
No community discussion yet for this question.