On Sat, 30 Oct 2010 16:00:39 -0400, Tim Dunphy <[email protected]> wrote:
> how can I set the hostname so that it persists through reboots? I have
> set the hostname I want in /etc/hosts but rebooting the change does
> not show up. In CentOS you have /etc/hostname which serves this
> purpose but in FreeBSD I don't know how to do this.
Put this setting into /etc/rc.conf:
hostname="blah.foo.bar"
Of course with your desired hostname. :-)
See "man rc.conf" and "man hosts" for details about the function
of those files; see also /etc/defaults/rc.conf for other options
that may be interesting in this concern.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"