Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 2010 22:11:45 +0200
From:      Sabine Baer <baerks@t-online.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: hostname
Message-ID:  <20101030201145.GJ11765@amd.catfish.ddns.org>
In-Reply-To: <AANLkTi=LzD4iehPf7EV_PGfFFdQujMEi0BAzxp%2BVozro@mail.gmail.com>
References:  <AANLkTi=LzD4iehPf7EV_PGfFFdQujMEi0BAzxp%2BVozro@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 30, 2010 at 04:00:39PM -0400, Tim Dunphy 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.

I think, /etc/rc.conf could be the best place.

Sabine

-- 
Der Gefraessige, wenn er Vorsicht nicht kennt, isst sich Uebelkeit an.
Dem toerichten Mann wird sein Magen zum Spott, wenn er zu Klugen
kommt.                                                    (Hávamál 13)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101030201145.GJ11765>