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?
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 production.company.com
D) # echo "192.168.1.100 production.company.com" >> /etc/hosts
Correct Answer:
Verified
Q185: An administrator needs to kill the oldest
Q186: A junior administrator is configuring local name
Q187: A junior systems administrator is tasked with
Q188: A Linux administrator tries to ping a
Q189: A Linux administrator is restoring the SELinux
Q191: Which of the following commands will let
Q192: A junior systems administrator is diagnosing an
Q193: An administrator needs to create a file
Q194: An administrator notices that a long-running script,
Q195: A file server is sharing a directory
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents