Server insists on wrong hostname

Christian Alge lists at burnus.net
Sat Oct 11 14:19:48 UTC 2014


Doesn't sound right indeed.. The name is being set to the server's
previous name ("Freie Energie" instead of "freieenergie"). Would that
issue in the hostname command also concern the output of `print -P %m`?
Also why would hostname do that? On a side note, I had the complete file
system searched for any file containing the old name and none was
returned. So where could it be stored?


> Christian Alge <mailto:lists at burnus.net>
> 11. Oktober 2014 11:25
> Hi,
>
> I am operating a FreeBSD 10.0-STABLE server and once upon a time I
> decided to change its hostname. I edited it in /etc/rc.conf, /etc/hosts
> and /etc/defaults/rc.conf. I also set it by invoking `sudo hostname`,
> but every time I restart it, it aquires the old name again. I fail to
> see, where that setting comes from. Can any of you help me out with
> that? Thanks in advance.
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>
> Michelle Sullivan <mailto:michelle at sorbs.net>
> 11. Oktober 2014 15:02
> If DHCPd probably from the DHCP server(and client).. If not DHCP check
> /etc/rc.conf and /etc/rc.conf.local.
>
> Christian Alge <mailto:lists at burnus.net>
> 11. Oktober 2014 15:31
> Thanks for your quick answer. The DHCP server is configured to assign
> the correct hostname to this server's MAC. /etc/rc.conf states the
> correct hostname, /etc/rc.conf.local does not exist. Neither do
> /usr/local/etc/rc.conf*.
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>
> Michelle Sullivan <mailto:michelle at sorbs.net>
> 11. Oktober 2014 15:36
>
> Doesn't sound right... I assume its just the 'hostname' command that is
> reporting the wrong information? What is it being set/reset to?
>
> Michelle
>


More information about the freebsd-stable mailing list