From owner-freebsd-stable@FreeBSD.ORG Sat Oct 11 14:19:48 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32C82CFA for ; Sat, 11 Oct 2014 14:19:48 +0000 (UTC) Received: from burnus.net (burnus.net [85.214.218.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E66B5CB9 for ; Sat, 11 Oct 2014 14:19:47 +0000 (UTC) Received: from nullzonenkonverter.lan (p508C71AD.dip0.t-ipconnect.de [80.140.113.173]) by burnus.net (Postfix) with ESMTPSA id 4DC5A2872034 for ; Sat, 11 Oct 2014 16:19:44 +0200 (CEST) Message-ID: <54393C76.7090702@burnus.net> Date: Sat, 11 Oct 2014 16:19:34 +0200 From: Christian Alge User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: FreeBSD-STABLE Mailing List Subject: Re: Server insists on wrong hostname References: <5438F7A4.4070908@burnus.net> <54392A57.7020704@sorbs.net> <54393142.4050005@burnus.net> <5439326B.3070508@sorbs.net> In-Reply-To: <5439326B.3070508@sorbs.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2014 14:19:48 -0000 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 > 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > Michelle Sullivan > 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 > 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > Michelle Sullivan > 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 >