Just to answer my own question: No, underscores are not allowed in hostnames as of RFC 1123 (see also http://stackoverflow.com/questions/2180465/can-domain-name-subdomains-have-an-underscore-in-it/2183140#2183140).
Tobias > -----Original Message----- > From: Blueonyx [mailto:[email protected]] On Behalf Of > Tobias Gablunsky > Sent: Thursday, July 21, 2016 2:26 PM > To: BlueOnyx General Mailing List <[email protected]> > Subject: [BlueOnyx:19864] Re: How to change hostname on a BO VM, 5209R > > Hi Michael, > > wow, now I see I've been dump - just overlooked the field :-/ > > But now I have another problem: the form doesn't accept my new hostname > "besins_vm4" - underscores not allowed? > > Thanks, > Tobias > > > -----Original Message----- > > From: Blueonyx [mailto:[email protected]] On Behalf Of > > Michael Stauber > > Sent: Wednesday, July 20, 2016 5:26 PM > > To: BlueOnyx General Mailing List <[email protected]> > > Subject: [BlueOnyx:19863] Re: How to change hostname on a BO VM, 5209R > > > > 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 > > _______________________________________________ > > Blueonyx mailing list > > [email protected] > > http://mail.blueonyx.it/mailman/listinfo/blueonyx > > > _______________________________________________ > Blueonyx mailing list > [email protected] > http://mail.blueonyx.it/mailman/listinfo/blueonyx _______________________________________________ Blueonyx mailing list [email protected] http://mail.blueonyx.it/mailman/listinfo/blueonyx
