On Sun, Apr 26, 2015 at 08:08:49PM -0500, Robert Nichols wrote:
What about this:
hostnamectl set-hostname whateveryouwant
# which hostnamectl /usr/bin/which: no hostnamectl in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) # yum provides */hostnamectl ''' No Matches found
Apparently does not exist for CentOS 6.
No, it's a systemd thing, I think, started with RHEL7.
I've always used /etc/sysconfig/network for the hostname entry, which works through CentOS-6.x