Re: [CentOS] Prevent network setup from changing the hostname

2015-04-28 Thread Robert Nichols
On 04/26/2015 08:28 PM, Peter Larsen wrote: Strange - you may have a dhcp server that accepts host names from the clients - which of course would fit your use case. Just realize that not all dhcp servers are setup to be that "lenient" when it comes to preserving the host name picked by a client.

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-27 Thread Scott Robbins
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) > # yu

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Peter Larsen
On 04/26/2015 09:19 PM, Robert Nichols wrote: > On 04/26/2015 07:57 PM, Peter Larsen wrote: >> On 04/26/2015 08:25 PM, Robert Nichols wrote: >>> On 04/26/2015 06:31 PM, Peter Larsen wrote: On 04/26/2015 07:26 PM, Robert Nichols wrote: > How can I block network setup (via NetworkManager) fr

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Robert Nichols
On 04/26/2015 07:57 PM, Peter Larsen wrote: On 04/26/2015 08:25 PM, Robert Nichols wrote: On 04/26/2015 06:31 PM, Peter Larsen wrote: On 04/26/2015 07:26 PM, Robert Nichols wrote: How can I block network setup (via NetworkManager) from changing the machine's hostname whenever the network confi

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Robert Nichols
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

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Peter Larsen
On 04/26/2015 08:25 PM, Robert Nichols wrote: > On 04/26/2015 06:31 PM, Peter Larsen wrote: >> On 04/26/2015 07:26 PM, Robert Nichols wrote: >>> How can I block network setup (via NetworkManager) from changing >>> the machine's hostname whenever the network configuration changes? >> >> Make it a sy

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Frank Cox
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 -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com _

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Robert Nichols
On 04/26/2015 06:31 PM, Peter Larsen wrote: On 04/26/2015 07:26 PM, Robert Nichols wrote: How can I block network setup (via NetworkManager) from changing the machine's hostname whenever the network configuration changes? Make it a system connection instead of a user connection. Or give the ho

Re: [CentOS] Prevent network setup from changing the hostname

2015-04-26 Thread Peter Larsen
Make it a system connection instead of a user connection. Or give the host a static name on install and don't allow dhcp to override it. On 04/26/2015 07:26 PM, Robert Nichols wrote: > How can I block network setup (via NetworkManager) from changing > the machine's hostname whenever the network co