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.
Christian Alge wrote:> 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" >If DHCPd probably from the DHCP server(and client).. If not DHCP check /etc/rc.conf and /etc/rc.conf.local. -- Michelle Sullivan http://www.mhix.org/
On Sat, 11 Oct 2014 11:25:56 +0200, Christian Alge <lists at burnus.net> wrote:> 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.There is no need to edit /etc/default/rc.conf. The setting in rc.conf overrides it. It can be useful to post your config files. Maybe somebody spots a spelling error for example. Ronald.