[BlueOnyx:19863] Re: How to change hostname on a BO VM, 5209R

Michael Stauber mstauber at blueonyx.it
Wed Jul 20 10:25:50 -05 2016


Hi Tobias,

> I am feeling pretty dumb today. I am not able to change the hostname of a 5209R the way I want.
> 
> I have set up a VMware VM which is configured the way I want. But when I copy it to new VM, the hostname gets copied with it. It is kept in /etc/host and in sendmail, apache and admserv config (/etc/admserv/conf/httpd.conf /etc/hostname /etc/mail/sendmail.cf /etc/mail/local-host-names /etc/hosts /etc/HOSTNAME /etc/httpd/conf/vhosts/preview /etc/httpd/conf/httpd.conf)
> 
> I read about the needed setting per "hostnamectl" in Thread "BlueOnyx:19846" already.
> 
> What do I have to do to tell BlueOnyx about that changed hostname? Is it some cce setting? The "network_settings.sh" script only changes network settings, not the hostname.

The best way to do it is to use the GUI: "Server Management" / "Network
Services" / "TCP/IP".

That will then update the hostname in all the relevant places. If your
5209R is fully YUM updated, then it will also use "hostnamectl" to set
the hostname on the OS correctly.

And yes: It's stored all over the place:

It's in CODB in the "System" object.and a whole bunch of config files:

/etc/hostname
/etc/hosts
/etc/mail/local-host-names
/etc/mail/*
/etc/httpd/conf/httpd.conf
/etc/admserv/conf/httpd.conf
/etc/httpd/conf/vhosts/preview

Additionally the AdmServ SSL certificate is also re-generated whenever
the hostname is changed, because the cert needs to match the hostname.

Hence the best way to change it is the GUI, as it ought to do it in all
the relevant places.

-- 
With best regards

Michael Stauber



More information about the Blueonyx mailing list