[CentOS] Prevent network setup from changing the hostname
Robert Nichols
rnicholsNOSPAM at comcast.net
Mon Apr 27 01:08:49 UTC 2015
On 04/26/2015 07:37 PM, Frank Cox wrote:
> On Sun, 26 Apr 2015 19:25:27 -0500
> Robert Nichols wrote:
>
>> Do you know of a place I can set a static name that NetworkManager
>> won't override?
>
> 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.
--
Bob Nichols "NOSPAM" is really part of my email address.
Do NOT delete it.
More information about the CentOS
mailing list