Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Oct 2010 16:09:52 -0400
From:      Tim Kellers <timothyk@wallnet.com>
To:        Tim Dunphy <bluethundr@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: hostname
Message-ID:  <4CCC7B90.6090807@wallnet.com>
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 10/30/10 4:00 PM, 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.
>
>
> thanks
>
edit /etc/rc.conf and enter:

hostname="[put your hostname here]"

change the [put your hostname here] to your actual hostname.

And it will load the name on (re)boot.

Tim Kellers



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