Do I modify 3 files to change hostname?
Hi,
I realize that the hostname is in multiple files. Here are the ones I'm aware of:
1. /etc/hosts
2. /etc/sysconfig/network
3. /proc/sys/kernel/hostname
If I wanted to change the hostname of my server, do I need to edit all three files then use the hostname MyNewHostName command? Or do I edit just the /etc/hosts file then use the command?
|