Re: RHEL 7, networkmangler - trying to set hostname via dhcp

mark <[email protected]> Wed, 23 Jul 2014 21:27:41 -0400
Newsgroups gmane.linux.redhat.general
Message-ID <[email protected]>
Hi, Harry,

On 07/23/14 19:32, Harry Hoffman wrote:
 > On Jul 23, 2014, at 5:03 PM, [email protected] wrote:
 >
 >> I have yet to find a simple way to do this, that was easy without NM.
 >> I've found scripts... but no simple configuration file, nor RH docs, to
 >> tell me how to have this automatically happen in the "correct" way.
>
> I think what you’re saying is that you want your system’s name to be set
> from the DHCP server. Is that correct?
>
> Check if /etc/hostname  is present and has some value. If so… cp
> /etc/hostname /etc/hostname-`date -I` && rm /etc/hostname
>
> Restart networking/reboot and see if that works for you.
>
Yes, the dhcp server should hand it its name. And hostname only has, IIRC (I'm 
at home now) localhost.localdomain.

	mark

-- 
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list