CompTIA
XK0-004 · Question #200
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?
The correct answer is A. /etc/sysconfig/network. 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
System Management
Question
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?
Options
- A/etc/sysconfig/network
- B/etc/hosts
- C/etc/resolv.conf
- D/etc/sysconfig/nsswitch.conf
How the community answered
(31 responses)- A94% (29)
- B3% (1)
- D3% (1)
Explanation
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
Topics
#hostname#/etc/sysconfig/network#system configuration#network settings
Community Discussion
No community discussion yet for this question.