[CentOS] /etc/sysconfig/network HOSTNAME settings

Tue Sep 6 22:47:00 UTC 2016
Gordon Messmer <gordon.messmer at gmail.com>

On 09/04/2016 05:32 AM, Walter H. wrote:
> what is the correct way? 

That depends on what release you're using.  On CentOS 7, you'd use the 
"hostnamectl" command.  The sysconfig/network file is no longer used for 
that purpose.

Otherwise, consult /usr/share/doc/initscripts/sysconfig.txt