[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hostname set to "new-host"



On Wed, Oct 12, 2011 at 12:37 PM, Celejar <celejar@gmail.com> wrote:
> On Wed, 12 Oct 2011 11:27:42 -0400
> Tom H <tomh0665@gmail.com> wrote:
>> On Wed, Oct 12, 2011 at 10:13 AM, Celejar <celejar@gmail.com> wrote:


>> > Just rebooted my system, and the hostname is now set to
>> > 'new-host' (/etc/hostname still contains the correct hostname). Anybody
>> > seeing this, or understand why?
>>
>> What's the output of "sysctl kernel.hostname"?
>
> kernel.hostname = new-host

So as far as the kern's concerned, "new-host" is the hostname.


>> Could now be getting your hostname from your dhcp server via dhclient or via NM?
>
> Perhaps, although as I noted in a different message, I thought I saw
> this before the network was even set up. I'll have to check more
> carefully.
>
> In any event, I've used this system for years on various sorts of
> networks (mostly controlled by consumer grade SOHO router / firewall /
> wireless AP / DHCP servers running both the manufacturer's standard
> firmware as well as OpenWrt), with both static addressing as well as
> DHCP, and I've never seen this before today.

You could have hit a combination of dhcp settings on the dhcp server
and dhclient settings on the laptop that forces your laptop to get a
hostname from the dhcp server. Anyway, I think that you said in
another post that this is happening before the network comes up; so
this isn't it...

I vaguely remember (but could be misremembering!) someone reporting
something similar on Fedora where GNOME/GDM was setting the hostname.
You could check whether this is the issue by appending "text" to the
grub "linux" line.

BTW, where are you seeing the new hostname?


Reply to: