CompTIA
XK0-004 · Question #108
XK0-004 Question #108: Real Exam Question with Answer & Explanation
Sign in or unlock XK0-004 to reveal the answer and full explanation for question #108. The question stem and answer options stay visible for context.
Question
A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment. Which of the following commands should be run on each of the testing systems to BEST meet this goal?
Options
- A
hostnamectl set-hostname "192.168.1.100 production.company.com"
- B
grep -i IP "${ip addr show} production.company.com" > /etc/resolv.conf
- C
ip addr add 192.168.1.100/24 dev eth0 && rndc reload
- D
echo "192.168.1.100 production.company.com" >> /etc/hosts
Unlock XK0-004 to see the answer
You've previewed enough free XK0-004 questions. Unlock XK0-004 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.