A systems administrator received a request to change the hostname to a new name. Which of the following file configurations should be changed to fix the hostname in the server?
https://linuxhostsupport.com/blog/how-to-change-your-hostname-on-debian/#:~:text=On%20Debian%20based%20systems%2C%20the,d%2Fhostname.
hosts is not correct. Hosts is a hostname to IP resolver. In Debian, it is in /etc/hostname
in ubutu this is the steps to change the hostname: Edit /etc/hostname, remove old hostname and make an entry of new hostname
Edit /etc/hosts, replace old hostname with new hostname
Reboot the system.
The answers are limited to /network and /hosts due to the fact that to modify the hostname on Ubuntu requires to modifidy both the /etc/hosts and the /etc/hostname files
i think the correct answer is the A. Because it is the fastest way to change the hostname to a new name on the Server. So the A is the correct answer for me.
In "/etc/sysconfig/network" You set the hostname:
HOSTNAME="myserver.local"
In "/etc/hosts" You bind an IP to resolve the name:
XXX.XXX.XXX.XXX myserver.com
This section is not available anymore. Please use the main Exam Page.XK0-004 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Esma
Highly Voted 4 years, 3 months agotrusteme
4 years, 3 months agoMas511
3 years, 6 months agoMas511
3 years, 6 months agopinonino
Most Recent 2 years, 10 months agoaugustogcn
3 years, 1 month agotrusteme
4 years, 3 months ago